mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Added /spawnpoint message
This commit is contained in:
parent
fb6cd22c83
commit
076bf2f2fe
@ -78,6 +78,9 @@ class SpawnpointCommand extends VanillaCommand{
|
||||
$target->setSpawn($pos);
|
||||
Command::broadcastCommandMessage($sender, "Set ".$target->getName()."'s spawnpoint to ".$pos->x.", ".$pos->y.", ".$pos->z);
|
||||
return true;
|
||||
}else{
|
||||
$sender->sendMessage(TextFormat::RED . "Please provide a player!");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user