mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
[Bleeding] Check for player validity in spawnpoint command. Fixes BUKKIT-2742
By: mbax <github@phozop.net>
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user