Advertisement
RedixPvP

hide

Apr 19th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. @SuppressWarnings("deprecation")
  2. @EventHandler
  3. public void onHide(PlayerInteractEvent e){
  4. Player p = e.getPlayer();
  5. if(e.getAction() == Action.RIGHT_CLICK_BLOCK || (e.getAction() == Action.RIGHT_CLICK_AIR)){
  6. if(p.getItemInHand().getType().equals(Material.BLAZE_ROD)){
  7. if ((p.getItemInHand().getItemMeta().getDisplayName().equals("§cSpieler verstecken"))
  8. && (p.hasPermission(""))){
  9. if(p.getWorld() == Bukkit.getWorld("world")){
  10. for(Player players : Bukkit.getOnlinePlayers()){
  11. if(hide.contains(p.getName())){
  12. hide.remove(p.getName());
  13. p.showPlayer(players);
  14. }
  15.  
  16. }
  17. }
  18.  
  19. }
  20. }
  21.  
  22.  
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement