mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-22 02:12:25 +00:00
parent
8ed16d7f3f
commit
fd5ebd0921
@ -484,11 +484,13 @@ public class ShopInteractListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
EconomyResponse r = plugin.getEconomy().withdrawPlayer(executor, location.getWorld().getName(), creationPrice);
|
if (creationPrice > 0) {
|
||||||
if (!r.transactionSuccess()) {
|
EconomyResponse r = plugin.getEconomy().withdrawPlayer(executor, location.getWorld().getName(), creationPrice);
|
||||||
plugin.debug("Economy transaction failed: " + r.errorMessage);
|
if (!r.transactionSuccess()) {
|
||||||
executor.sendMessage(LanguageUtils.getMessage(Message.ERROR_OCCURRED, new Replacement(Placeholder.ERROR, r.errorMessage)));
|
plugin.debug("Economy transaction failed: " + r.errorMessage);
|
||||||
return;
|
executor.sendMessage(LanguageUtils.getMessage(Message.ERROR_OCCURRED, new Replacement(Placeholder.ERROR, r.errorMessage)));
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
shop.create(true);
|
shop.create(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user