Kewilleen

Teste

Nov 2nd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. ItemStack is = e.getCurrentItem();
  2. Inventory invs = e.getInventory();
  3. Inventory arena = s.createInventory(null, tamanho, nome);
  4. if (invs.getName().equalsIgnoreCase(arena.getName())) {
  5. if (is != null) {
  6. //faz algo
  7. if (is.getTypeId() == id) { //Se o item clicado for == id do ItemStack
  8. //faz algo tendeu?
  9. }
  10.  }else{
  11. e.setCancelled(true);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment