mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-28 19:11:21 +01:00
Merge pull request #389 from Brokkonaut/fix-npe-BukkitOfflinePlayer
Fix NPE in WorldGuardPlugin.wrapOfflinePlayer()
This commit is contained in:
commit
e0b91e9529
@ -41,7 +41,7 @@ public BukkitPlayer(WorldGuardPlugin plugin, Player player) {
|
|||||||
super((WorldEditPlugin) Bukkit.getPluginManager().getPlugin("WorldEdit"), player);
|
super((WorldEditPlugin) Bukkit.getPluginManager().getPlugin("WorldEdit"), player);
|
||||||
this.plugin = plugin;
|
this.plugin = plugin;
|
||||||
// getName() takes longer than before in newer versions of Minecraft
|
// getName() takes longer than before in newer versions of Minecraft
|
||||||
this.name = player.getName();
|
this.name = player == null ? null : player.getName();
|
||||||
this.silenced = silenced;
|
this.silenced = silenced;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user