mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-28 21:45:47 +01:00
Fix shop removal
This commit is contained in:
parent
c844dffc14
commit
cce4b80a80
@ -85,7 +85,7 @@ public class ShopInteractMonitorListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void onShopRemove(ShopRemoveEvent e) {
|
||||
((ShopChestImpl) plugin).getDatabase().removeShop(e.getShop())
|
||||
plugin.getShopManager().removeShop(e.getShop())
|
||||
.thenRun(() -> e.getPlayer().sendMessage("§aShop has been removed.")) // TODO: i18n
|
||||
.exceptionally(ex -> {
|
||||
Logger.severe("Failed to remove shop");
|
||||
|
Loading…
Reference in New Issue
Block a user