Okey i know this is a nooby question but how i do when a player right click a watch all other players get invisible? Code:java @EventHandler public void PlayerVis(PlayerInteractEvent e) { Player p = e.getPlayer(); Action a = e.getAction(); if (a == Action.RIGHT_CLICK_AIR || a == Action.RIGHT_CLICK_BLOCK) { } if (p.getItemInHand().getType() == Material.WATCH) {
Stackore Firstly, I would put the "If item is watch" statement inside the "If rightclicking air or block" statement. Then just loop through all the players setting them invisible to the player who clicked the watch.