Moved Player->setGamemode() message to /gamemode command

This commit is contained in:
Shoghi Cervantes
2015-04-15 20:49:38 +02:00
parent 88797d4c6c
commit d6186fa7c6
2 changed files with 1 additions and 2 deletions

View File

@ -79,6 +79,7 @@ class GamemodeCommand extends VanillaCommand{
if($target === $sender){
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.gamemode.success.self", [Server::getGamemodeString($gameMode)]));
}else{
$target->sendMessage(new TranslationContainer("gameMode.changed"));
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.gamemode.success.other", [$target->getName(), Server::getGamemodeString($gameMode)]));
}
}