mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Remove more usages of hardcoded translation keys
This commit is contained in:
@@ -59,7 +59,7 @@ class DefaultGamemodeCommand extends VanillaCommand{
|
||||
}
|
||||
|
||||
$sender->getServer()->getConfigGroup()->setConfigInt("gamemode", GameModeIdMap::getInstance()->toId($gameMode));
|
||||
$sender->sendMessage(KnownTranslationFactory::commands_defaultgamemode_success($gameMode->getTranslationKey()));
|
||||
$sender->sendMessage(KnownTranslationFactory::commands_defaultgamemode_success($gameMode->getTranslatableName()));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -78,10 +78,10 @@ class GamemodeCommand extends VanillaCommand{
|
||||
$sender->sendMessage("Game mode change for " . $target->getName() . " failed!");
|
||||
}else{
|
||||
if($target === $sender){
|
||||
Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_gamemode_success_self($gameMode->getTranslationKey()));
|
||||
Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_gamemode_success_self($gameMode->getTranslatableName()));
|
||||
}else{
|
||||
$target->sendMessage(KnownTranslationFactory::gameMode_changed($gameMode->getTranslationKey()));
|
||||
Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_gamemode_success_other($gameMode->getTranslationKey(), $target->getName()));
|
||||
$target->sendMessage(KnownTranslationFactory::gameMode_changed($gameMode->getTranslatableName()));
|
||||
Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_gamemode_success_other($gameMode->getTranslatableName(), $target->getName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user