Is it possible to toggle multiple scoreboards? Ex. Scoreboard 1 contains an armor gui Scoreboard 2 contains active potion effects. Is it possible to disable scoreboard 1 and enable scoreboard 2? or will I only be able to use 1 scoreboard in my plugin?
you can store all the scoreboards you want to see in a HashMap<String, ArrayList<Scoreboard>> and the current Scoreboard id in an additional HashMap<String, Integer>. The Strings are the playernames. next you make a timed task (Bukkit.getScheduler().runTaskTimer() that changes the shown scoreboard for the players.