[Bleeding] Check for player validity in spawnpoint command. Fixes BUKKIT-2742
This commit is contained in:
parent
94effa3f0e
commit
9907150d92
@ -36,6 +36,10 @@ public class SpawnpointCommand extends VanillaCommand {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
player = Bukkit.getPlayerExact(args[0]);
|
player = Bukkit.getPlayerExact(args[0]);
|
||||||
|
if (player == null) {
|
||||||
|
sender.sendMessage("Can't find user " + args[0]);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user