Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (ItemStack item : inv.getContents()) {
- if (item != null && item.equals(assegno)) {
- if (item.getAmount() == 1) {
- inv.remove(assegno);
- Main.economy.depositPlayer(e.getPlayer(), soldiDaRiscattare);
- numeroAssegni++;
- }
- else {
- for (int i = 0; i < item.getAmount(); i++) {
- inv.remove(assegno);
- Main.economy.depositPlayer(e.getPlayer(), soldiDaRiscattare);
- numeroAssegni++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement