Fix /gamemode output again

This commit is contained in:
Dylan K. Taylor 2017-11-19 15:28:34 +00:00
parent 3a80ec4db8
commit c75e62b38c

View File

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