mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Localize messages for /op and /deop
This commit is contained in:
@ -61,7 +61,7 @@ class DeopCommand extends VanillaCommand{
|
||||
|
||||
$sender->getServer()->removeOp($name);
|
||||
if(($player = $sender->getServer()->getPlayerExact($name)) !== null){
|
||||
$player->sendMessage(TextFormat::GRAY . "You are no longer op!");
|
||||
$player->sendMessage(KnownTranslationFactory::commands_deop_message()->prefix(TextFormat::GRAY));
|
||||
}
|
||||
Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_deop_success($name));
|
||||
|
||||
|
@ -61,7 +61,7 @@ class OpCommand extends VanillaCommand{
|
||||
|
||||
$sender->getServer()->addOp($name);
|
||||
if(($player = $sender->getServer()->getPlayerExact($name)) !== null){
|
||||
$player->sendMessage(TextFormat::GRAY . "You are now op!");
|
||||
$player->sendMessage(KnownTranslationFactory::commands_op_message()->prefix(TextFormat::GRAY));
|
||||
}
|
||||
Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_op_success($name));
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user