Merge pull request #3156 from Multiverse/zax71/mv5/improvedLocation

This commit is contained in:
Ben Woo 2025-01-20 12:38:53 +08:00 committed by GitHub
commit d9cf3f50ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,10 +29,10 @@ public class SetSpawnCommand extends CoreCommand {
this.worldManager = worldManager;
}
@CommandAlias("mvsetspawn")
@CommandAlias("mvsetspawn|mvss")
@Subcommand("setspawn")
@CommandPermission("multiverse.core.spawn.set")
@Syntax("[location]")
@Syntax("[x],[y],[z],[pitch],[yaw]")
@Description("{@@mv-core.setspawn.description}")
void onSetSpawnCommand(
BukkitCommandIssuer issuer,
@ -57,6 +57,6 @@ public class SetSpawnCommand extends CoreCommand {
}
private String prettyLocation(Location location) {
return location.getX() + ", " + location.getY() + ", " + location.getZ();
return location.getX() + ", " + location.getY() + ", " + location.getZ() + ". pitch:" + location.getPitch() + ", yaw:" + location.getYaw();
}
}