mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 15:35:52 +00:00
Fix kick command broadcast message.
This commit is contained in:
parent
53214005cd
commit
167ee97569
@ -53,7 +53,7 @@ class KickCommand extends VanillaCommand{
|
||||
|
||||
if(($player = $sender->getServer()->getPlayer($name)) instanceof Player){
|
||||
$player->kick($reason);
|
||||
Command::broadcastCommandMessage($sender, "Kicked " . $player->getName() . " from the game: " . $reason);
|
||||
Command::broadcastCommandMessage($sender, "Kicked " . $player->getName() . " from the game: '{$reason}'");
|
||||
}else{
|
||||
$sender->sendMessage($name . " not found.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user