mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
[Bleeding] Check for player validity in spawnpoint command. Fixes BUKKIT-2742
By: mbax <github@phozop.net>
This commit is contained in:
parent
5a1309d875
commit
e20c3d1e55
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue