Fixed kick messages

This commit is contained in:
Shoghi Cervantes
2014-06-27 23:26:35 +02:00
parent 401d7342dd
commit cc36f8f997
4 changed files with 12 additions and 10 deletions

View File

@ -77,6 +77,7 @@ use pocketmine\network\protocol\UpdateBlockPacket;
use pocketmine\network\protocol\UseItemPacket;
use pocketmine\Player;
use pocketmine\Server;
use pocketmine\utils\TextFormat;
use raklib\protocol\EncapsulatedPacket;
use raklib\RakLib;
use raklib\server\RakLibServer;
@ -118,7 +119,7 @@ class RakLibInterface implements ServerInstance, SourceInterface{
$this->identifers->detach($player);
unset($this->players[$identifier]);
unset($this->identifiersACK[$identifier]);
$player->close($player->getName() . " has left the game", $reason);
$player->close(TextFormat::YELLOW . $player->getName() . " has left the game", $reason);
}
}