Browse files

Fix NPE in WorldGuardPlugin.wrapOfflinePlayer()

The constructor of BukkitOfflinePlayer calls the constructor of BukkitPlayer with a null player. So without this fix it is not possible to create any BukkitOfflinePlayer.
  • Loading branch information...
Brokkonaut committed Oct 5, 2018
1 parent a6261b9 commit be426e92dfdcb0ebb33a10e0842c6f70b8d3e56b
@@ -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 = player.getName(); = player == null ? null : player.getName();
this.silenced = silenced;

0 comments on commit be426e9

Please sign in to comment.