Use Player::getDisplayName() on more commands

This commit is contained in:
Shoghi Cervantes
2014-07-14 14:12:03 +02:00
parent 096e238242
commit cb879977d2
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ class SpawnpointCommand extends VanillaCommand{
if($sender instanceof Player){
$pos = new Position((int) $sender->x, (int) $sender->y, (int) $sender->z, $sender->getLevel());
$target->setSpawn($pos);
Command::broadcastCommandMessage($sender, "Set " . $target->getName() . "'s spawnpoint to " . $pos->x . ", " . $pos->y . ", " . $pos->z);
Command::broadcastCommandMessage($sender, "Set " . $target->getDisplayName() . "'s spawnpoint to " . $pos->x . ", " . $pos->y . ", " . $pos->z);
return true;
}else{