Skip to content

Commit

Permalink
Merge pull request #82 from vecnavium-pm-pl/stable
Browse files Browse the repository at this point in the history
Fixes issue #81
  • Loading branch information
Vecnavium committed Dec 21, 2021
2 parents 73969f6 + b586787 commit 7c1cc83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/_64FF00/PurePerms/PPListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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"));
}
}
}
Expand Down

0 comments on commit 7c1cc83

Please sign in to comment.