Hi, I'm coding a plugin that should hide the player to all the others when he types a certain command, but apparently, I can't seem to get it working. In the IDE everything looks fine, no errors or what so ever, but when I compile it and try in game, an error appears in the console.
Here is the command of the plugin, and below the error I get in console.
Error in console with hidePlayer(Main.plugin, p)
Here is the command of the plugin, and below the error I get in console.
Code (Text):
if (!Main.vanish.contains(p)) {
for (Player all : Bukkit.getOnlinePlayers()) {...
for (Player all : Bukkit.getOnlinePlayers()) {...