Scoreboard Question.

Discussion in 'Plugin Development' started by hubeb, Aug 11, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    hubeb

    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?
     
  2. Offline

    Janmm14

    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.
     
Thread Status:
Not open for further replies.

Share This Page