Fixed reason on kick message

This commit is contained in:
Shoghi Cervantes
2014-06-30 01:17:55 +02:00
parent 3fd18ca4af
commit 692a4fb57b
2 changed files with 3 additions and 7 deletions

View File

@@ -51,12 +51,8 @@ class KickCommand extends VanillaCommand{
$name = array_shift($args);
$reason = trim(implode(" ", $args));
if($reason === ""){
$reason = "Kicked by an operator.";
}
if(($player = $sender->getServer()->getPlayer($name)) instanceof Player){
$player->kick("Kicked by admin.");
$player->kick($reason);
}else{
$sender->sendMessage($name . " not found.");
}