mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-12 21:51:06 +00:00
Reset shop item after cancelled shop break
This commit is contained in:
parent
4bf5472e61
commit
c220f269c8
@ -73,6 +73,7 @@ public class ChestProtectListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shop.getItem().resetForPlayer(p);
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
e.getPlayer().sendMessage(LanguageUtils.getMessage(LocalizedMessage.Message.CANNOT_BREAK_SHOP));
|
e.getPlayer().sendMessage(LanguageUtils.getMessage(LocalizedMessage.Message.CANNOT_BREAK_SHOP));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user