Ok so I have been creating a plugin: if(commandLabel.equalsIgnoreCase("invs")){ if(player.hasPermission("gban.canUseInvs")){ player.sendMessage(ChatColor.GREEN + "You are now invisible!"); for(Player players : Bukkit.getOnlinePlayers()){ players.hidePlayer(player); } }else{ return false; } } although when a player joins the server they are still able to see the player being hidden, so I created an event handler PlayerJoinEvent although i don't know how to transfer the player being hidden to the PlayerJoinEvent Please help!