Rework SWScoreboard to ProtocolLib and remove unneccassary VersionDependents #72
@ -36,10 +36,10 @@ import java.util.Map;
|
||||
public class SWScoreboard {
|
||||
private SWScoreboard() {}
|
||||
|
||||
private static final HashMap<Player, ScoreboardCallback> playerBoards = new HashMap<>(); //Object -> Scoreboard | Alle Versionen in der Map!
|
||||
private static int toggle = 0;
|
||||
|
||||
private static final ProtocolManager manager = ProtocolLibrary.getProtocolManager();
|
||||
private static final HashMap<Player, ScoreboardCallback> playerBoards = new HashMap<>(); //Object -> Scoreboard | Alle Versionen in der Map!
|
||||
private static int toggle = 0; // Scoreboard 0 updates while scoreboard 1 is presenting. toggle marks the current active scoreboard
|
||||
|
||||
|
||||
private static final String SIDEBAR = "Sidebar";
|
||||
private static final PacketContainer[] DELETE_SCOREBOARD = new PacketContainer[2];
|
||||
private static final PacketContainer[] DISPLAY_SIDEBAR = new PacketContainer[2];
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Also entweder kleingeschrieben oder komplett groß bei den static final Variablen, und nicht das eine so und das andere so.
Konstanten GROß, anderes wie gewohnt camelCase.