WIP: scoreboard #12
@ -35,8 +35,6 @@ public class Core extends JavaPlugin{
|
||||
public void onEnable() {
|
||||
Bukkit.getPluginManager().registerEvents(new PlayerJoinedEvent(), this);
|
||||
Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this);
|
||||
|
||||
SWScoreboard.startPlayerBoards();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -68,7 +68,7 @@ public class SWScoreboard {
|
||||
}
|
||||
}
|
||||
|
||||
public static void startPlayerBoards() {
|
||||
static {
|
||||
Bukkit.getScheduler().scheduleSyncRepeatingTask(Core.getInstance(), () -> {
|
||||
synchronized (playerBoards) {
|
||||
for(Map.Entry<Player, SWScoreboard> entry : playerBoards.entrySet()) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren