Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if((e.getInventory().getTitle().equalsIgnoreCase("Deseja comprar permissão?")) && (e.getSlot() == 20)) {
- EconomyResponse r = Main.economy.withdrawPlayer(p.getName(), 500000.0D);
- if(r.transactionSuccess()) {
- Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "pex user " + p.getPlayer().getName() + " add obycraft.acesso.spawners");
- p.sendMessage("§aCompra concluida com sucesso, aproveite!");
- p.closeInventory();
- }else {
- p.sendMessage("§cVocê não possui dinheiro suficiente!");
- p.playSound(p.getPlayer().getLocation(), Sound.VILLAGER_NO, 1, 1);
- p.closeInventory();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement