summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/scoreboard/ScoreboardManager.java
blob: 00b67a18e9178095f8e05fda34f5cdcda7104284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.bukkit.scoreboard;

import java.lang.ref.WeakReference;

/**
 * Manager of Scoreboards
 */
public interface ScoreboardManager {

    /**
     * Gets the primary Scoreboard controlled by the server.
     * <p>
     * This Scoreboard is saved by the server, is affected by the /scoreboard
     * command, and is the scoreboard shown by default to players.
     *
     * @return the default sever scoreboard
     */
    Scoreboard getMainScoreboard();

    /**
     * Gets a new Scoreboard to be tracked by the server. This scoreboard will
     * be tracked as long as a reference is kept, either by a player or by a
     * plugin.
     *
     * @return the registered Scoreboard
     * @see WeakReference
     */
    Scoreboard getNewScoreboard();
}