From e83e0e6931ceea8c57b04504b13e137d15eca2b5 Mon Sep 17 00:00:00 2001 From: Vecnavium Date: Tue, 21 Dec 2021 05:40:43 -0800 Subject: [PATCH 1/2] Fixes issue #81 --- src/_64FF00/PurePerms/PPListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_64FF00/PurePerms/PPListener.php b/src/_64FF00/PurePerms/PPListener.php index 428840f0..041fcb5e 100644 --- a/src/_64FF00/PurePerms/PPListener.php +++ b/src/_64FF00/PurePerms/PPListener.php @@ -9,7 +9,7 @@ use pocketmine\event\player\PlayerCommandPreprocessEvent; use pocketmine\event\player\PlayerQuitEvent; use pocketmine\event\player\PlayerLoginEvent; -use pocketmine\lang\TranslationContainer; +use pocketmine\lang\Translatable; use pocketmine\player\Player; use pocketmine\utils\TextFormat; @@ -94,7 +94,7 @@ public function onPlayerCommand(PlayerCommandPreprocessEvent $event) { $event->cancel(); - $player->sendMessage(new TranslationContainer(TextFormat::RED . "%commands.generic.permission")); + $player->sendMessage(new Translatable(TextFormat::RED . "%commands.generic.permission")); } } } From b586787f12c7518e0c60102acd92d3a4ebc4572d Mon Sep 17 00:00:00 2001 From: Vecnavium <83182010+Vecnavium@users.noreply.github.com> Date: Tue, 21 Dec 2021 05:41:55 -0800 Subject: [PATCH 2/2] v1.4.5 is next --- plugin.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.yml b/plugin.yml index 42d07557..d39b8223 100644 --- a/plugin.yml +++ b/plugin.yml @@ -3,7 +3,7 @@ name: PurePerms main: _64FF00\PurePerms\PurePerms -version: 1.4.4 +version: 1.4.5 api: [4.0.0] load: POSTWORLD author: "Vecnavium , 64FF00 & ProjectInfinity"