cleanup
Dieser Commit ist enthalten in:
Ursprung
bc81ef6424
Commit
1631cd8486
@ -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