Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SuppressWarnings("deprecation")
- @EventHandler
- public void onHide(PlayerInteractEvent e){
- Player p = e.getPlayer();
- if(e.getAction() == Action.RIGHT_CLICK_BLOCK || (e.getAction() == Action.RIGHT_CLICK_AIR)){
- if(p.getItemInHand().getType().equals(Material.BLAZE_ROD)){
- if ((p.getItemInHand().getItemMeta().getDisplayName().equals("§cSpieler verstecken"))
- && (p.hasPermission(""))){
- if(p.getWorld() == Bukkit.getWorld("world")){
- for(Player players : Bukkit.getOnlinePlayers()){
- if(hide.contains(p.getName())){
- hide.remove(p.getName());
- p.showPlayer(players);
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement