Skip to content

Commit

Permalink
Ignore null-named heads for HeadDrops
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jan 30, 2020
1 parent 48e5533 commit 6d3620b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -180,7 +180,7 @@ public void onBlockBreak(BlockBreakEvent event) {
if(!skull.hasOwner()) if(!skull.hasOwner())
return; return;
String playerName = ChatColor.stripColor(skull.getOwner()); String playerName = ChatColor.stripColor(skull.getOwner());
if (ignoredNames.contains(playerName)) { if (playerName == null || ignoredNames.contains(playerName)) {
return; return;
} }
CraftBookPlayer player = CraftBookPlugin.inst().wrapPlayer(event.getPlayer()); CraftBookPlayer player = CraftBookPlugin.inst().wrapPlayer(event.getPlayer());
Expand Down

0 comments on commit 6d3620b

Please sign in to comment.