diff --git a/com/Acrobot/ChestShop/Listeners/blockBreak.java b/com/Acrobot/ChestShop/Listeners/blockBreak.java index a6f3372..3e59797 100644 --- a/com/Acrobot/ChestShop/Listeners/blockBreak.java +++ b/com/Acrobot/ChestShop/Listeners/blockBreak.java @@ -32,7 +32,7 @@ public class blockBreak extends BlockListener { if (restrictedSign(block)) return true; //If the block is a restricted sign (and the player is not an admin/mod) - Sign sign = uBlock.findSign(block, uLongName.stripName(player.getName())); + Sign sign = uBlock.findSign(block, (player != null ? uLongName.stripName(player.getName()) : null)); if (!isCorrectSign(sign, block)) return false; //It's not a correct shop sign, so don't cancel it if (playerIsNotOwner(player, sign)) return true; //Player is not the owner of the shop - cancel! if (weShouldReturnMoney()) Economy.add(uLongName.getName(sign.getLine(0)), Config.getFloat(Property.SHOP_REFUND_PRICE)); //Add some money diff --git a/plugin.yml b/plugin.yml index c68fb12..4e3e148 100644 --- a/plugin.yml +++ b/plugin.yml @@ -2,7 +2,7 @@ name: ChestShop main: com.Acrobot.ChestShop.ChestShop -version: 3.28 +version: 3.29 author: Acrobot