diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/SpawnpointCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/SpawnpointCommand.java index 0f2abfa687..50692157cd 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/SpawnpointCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/SpawnpointCommand.java @@ -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();