[Bleeding] Check for player validity in spawnpoint command. Fixes BUKKIT-2742

This commit is contained in:
mbax
2012-10-30 01:58:05 -04:00
committed by EvilSeph
parent bdf5d326f5
commit 629f2e5c58

View File

@@ -36,6 +36,10 @@ public class SpawnpointCommand extends VanillaCommand {
}
} else {
player = Bukkit.getPlayerExact(args[0]);
if (player == null) {
sender.sendMessage("Can't find user " + args[0]);
return true;
}
}
World world = player.getWorld();