Fix players not being refunded the money

This commit is contained in:
Acrobot 2013-12-03 18:32:09 +01:00
parent c6664b9047
commit c8ddf29e91

View File

@ -76,6 +76,13 @@ public class SignBreak implements Listener {
}
}
@EventHandler(ignoreCancelled = true, priority = EventPriority.MONITOR)
public static void onBrokenSign(BlockBreakEvent event) {
if (BlockUtil.isSign(event.getBlock()) && !event.isCancelled()) {
sendShopDestroyedEvent((Sign) event.getBlock().getState(), event.getPlayer());
}
}
@EventHandler(ignoreCancelled = true)
public static void onBlockPistonExtend(BlockPistonExtendEvent event) {
for (Block block : getExtendBlocks(event)) {