From 72f2769f1a74be5a292477ec7aac12e7af0dc51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E6=B2=90=E5=91=80?= <163636894+zimuya4153@users.noreply.github.com> Date: Thu, 8 Aug 2024 03:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9GetValueWithPlayer=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PlaceholderApi.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PlaceholderApi.cpp b/src/PlaceholderApi.cpp index 626b11e..8e3ef02 100644 --- a/src/PlaceholderApi.cpp +++ b/src/PlaceholderApi.cpp @@ -15,9 +15,7 @@ bool isParameters(std::string const& str) { std::string GetValue(std::string const& from) { return PlaceholderAPI::getValue(from); } -std::string GetValueWithPlayer(std::string const& a1, std::string const& a2) { - return PlaceholderAPI::getValue(a1, ll::service::bedrock::getLevel()->getPlayer(a2)); -} +std::string GetValueWithPlayer(std::string const& key, Player* player) { return PlaceholderAPI::getValue(key, player); } bool registerPlayerPlaceholder( std::string const& PluginName,