Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Fix kick command broadcast message.
Browse files Browse the repository at this point in the history
  • Loading branch information
msjyoo committed Jul 11, 2014
1 parent 5321400 commit 167ee97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pocketmine/command/defaults/KickCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function execute(CommandSender $sender, $currentAlias, array $args){

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.");
}
Expand Down

0 comments on commit 167ee97

Please sign in to comment.