Fixed NPE in MiscManager regarding hub clock tp fix for Master Builders

This commit is contained in:
xGamingDudex 2016-02-16 18:09:07 +01:00
parent f551703d9c
commit d33905e174

View File

@ -123,6 +123,10 @@ public class MiscManager implements Listener
return;
// Prevent players from hub warping off clock in Master Builders
if (!player.getItemInHand().hasItemMeta())
return;
if (!player.getItemInHand().getItemMeta().hasDisplayName())
return;
if (!player.getItemInHand().getItemMeta().getDisplayName().contains("Hub"))
return;