Hey i have error: Code: java.lang.IllegalStateException: Cannot set scoreboard for invalid CraftPlayer when i try: Code: player.setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard()); any ideas why ? you know why this is happening?
AoH_Ruthless Here there is nothing more, when player left the game: Code: public static void removeObjective(Player player){ player.setScoreboard(Bukkit.getScoreboardManager().getNewScoreboard()); } and i have sometimes this(UP) error and i dont know why :F
Hester By whole class, I mean whole class. From the looks of things, your scoreboard is wrong (looking at the error). See http://forums.bukkit.org/threads/tutorial-scoreboards-teams-with-the-bukkit-api.139655/