mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-03 06:01:30 +01:00
Check for the MVWorld before doing a Coord - Thanks for the bug report JonDatz!
This commit is contained in:
parent
e446c99f9e
commit
f09bcac644
@ -30,6 +30,10 @@ public class CoordCommand extends MultiverseCommand {
|
||||
// Check if the command was sent from a Player.
|
||||
if (sender instanceof Player) {
|
||||
Player p = (Player) sender;
|
||||
if(!this.plugin.isMVWorld(p.getWorld().getName())) {
|
||||
this.plugin.showNotMVWorldMessage(sender, p.getWorld().getName());
|
||||
return;
|
||||
}
|
||||
p.sendMessage(ChatColor.RED + "World: " + ChatColor.WHITE + p.getWorld().getName());
|
||||
p.sendMessage(ChatColor.RED + "World Scale: " + ChatColor.WHITE + this.plugin.getMVWorld(p.getWorld().getName()).getScaling());
|
||||
p.sendMessage(ChatColor.RED + "Coordinates: " + ChatColor.WHITE + this.locMan.strCoords(p.getLocation()));
|
||||
|
Loading…
Reference in New Issue
Block a user