diff --git a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/BukkitPlayer.java b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/BukkitPlayer.java index 08772aa3..553304b0 100644 --- a/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/BukkitPlayer.java +++ b/worldguard-legacy/src/main/java/com/sk89q/worldguard/bukkit/BukkitPlayer.java @@ -41,7 +41,7 @@ public BukkitPlayer(WorldGuardPlugin plugin, Player player) { super((WorldEditPlugin) Bukkit.getPluginManager().getPlugin("WorldEdit"), player); this.plugin = plugin; // getName() takes longer than before in newer versions of Minecraft - this.name = player.getName(); + this.name = player == null ? null : player.getName(); this.silenced = silenced; }