SHARE
TWEET

Untitled

a guest Jun 19th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (ItemStack item : inv.getContents()) {
  2.     if (item != null && item.equals(assegno)) {
  3.         if (item.getAmount() == 1) {
  4.             inv.remove(assegno);
  5.             Main.economy.depositPlayer(e.getPlayer(), soldiDaRiscattare);
  6.             numeroAssegni++;
  7.         }
  8.         else {
  9.             for (int i = 0; i < item.getAmount(); i++) {
  10.                 inv.remove(assegno);
  11.                 Main.economy.depositPlayer(e.getPlayer(), soldiDaRiscattare);
  12.                 numeroAssegni++;
  13.             }                      
  14.         }
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top