mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 20:46: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)
|
@EventHandler(ignoreCancelled = true)
|
||||||
public static void onBlockPistonExtend(BlockPistonExtendEvent event) {
|
public static void onBlockPistonExtend(BlockPistonExtendEvent event) {
|
||||||
for (Block block : getExtendBlocks(event)) {
|
for (Block block : getExtendBlocks(event)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user