Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ---------------------------------- reload and stop slots ------------------------------------------------------
- @EventHandler
- public void onClick(InventoryClickEvent e) {
- Player p = (Player) e.getWhoClicked();
- if(e.getInventory().getTitle().equals("agui"));
- if(e.getInventory().getName().equals(ChatColor.RED + "" + ChatColor.BOLD + "Admin GUI!"))
- if(e.getSlot() == 45) {
- p.openInventory(rload);
- p.playSound(p.getLocation(), Sound.ITEM_SHIELD_BLOCK, 1.0f, 1.0f);
- } else if (e.getSlot() == 53) {
- p.openInventory(stop);
- p.playSound(p.getLocation(), Sound.ITEM_BUCKET_EMPTY_LAVA, 1.0f, 1.0f);
- }
- }
- }
- // ---------------------------------- reload and stop slots ------------------------------------------------------
- // ------------------------- Agui GUI's -----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement