Advertisement
DSHunterMC

Untitled

Sep 24th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. // ---------------------------------- reload and stop slots ------------------------------------------------------
  2. @EventHandler
  3. public void onClick(InventoryClickEvent e) {
  4.  
  5. Player p = (Player) e.getWhoClicked();
  6.  
  7. if(e.getInventory().getTitle().equals("agui"));
  8. if(e.getInventory().getName().equals(ChatColor.RED + "" + ChatColor.BOLD + "Admin GUI!"))
  9.  
  10. if(e.getSlot() == 45) {
  11.  
  12. p.openInventory(rload);
  13. p.playSound(p.getLocation(), Sound.ITEM_SHIELD_BLOCK, 1.0f, 1.0f);
  14.  
  15. } else if (e.getSlot() == 53) {
  16. p.openInventory(stop);
  17. p.playSound(p.getLocation(), Sound.ITEM_BUCKET_EMPTY_LAVA, 1.0f, 1.0f);
  18.  
  19. }
  20. }
  21. }
  22.  
  23.  
  24. // ---------------------------------- reload and stop slots ------------------------------------------------------
  25.  
  26.  
  27. // ------------------------- Agui GUI's -----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement