Merge branch 'next-minor'

This commit is contained in:
Dylan K. Taylor
2020-05-19 21:32:44 +01:00
6 changed files with 5 additions and 15 deletions

View File

@@ -83,7 +83,7 @@ class SpawnpointCommand extends VanillaCommand{
}elseif(count($args) <= 1){
if($sender instanceof Player){
$cpos = $sender->getPosition();
$pos = Position::fromObject($cpos->floor(), $cpos->getWorld());
$pos = Position::fromObject($cpos->floor(), $cpos->getWorldNonNull());
$target->setSpawn($pos);
Command::broadcastCommandMessage($sender, new TranslationContainer("commands.spawnpoint.success", [$target->getName(), round($pos->x, 2), round($pos->y, 2), round($pos->z, 2)]));