mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-23 18:45:31 +01:00
Fix players not being refunded the money
This commit is contained in:
parent
c6664b9047
commit
c8ddf29e91
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user