KickCommand: Add missing space

closes #4660
closes #4661
This commit is contained in:
Alexey 2021-12-17 23:33:20 +03:00 committed by Dylan K. Taylor
parent e6e1bca676
commit 93caf72f34
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -59,7 +59,7 @@ class KickCommand extends VanillaCommand{
$reason = trim(implode(" ", $args));
if(($player = $sender->getServer()->getPlayerByPrefix($name)) instanceof Player){
$player->kick("Kicked by admin." . ($reason !== "" ? "Reason: " . $reason : ""));
$player->kick("Kicked by admin." . ($reason !== "" ? " Reason: " . $reason : ""));
if($reason !== ""){
Command::broadcastCommandMessage($sender, KnownTranslationFactory::commands_kick_success_reason($player->getName(), $reason));
}else{