cleanup
Dieser Commit ist enthalten in:
Ursprung
bc81ef6424
Commit
1631cd8486
@ -35,8 +35,6 @@ public class Core extends JavaPlugin{
|
|||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
Bukkit.getPluginManager().registerEvents(new PlayerJoinedEvent(), this);
|
Bukkit.getPluginManager().registerEvents(new PlayerJoinedEvent(), this);
|
||||||
Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this);
|
Bukkit.getPluginManager().registerEvents(new ChattingEvent(), this);
|
||||||
|
|
||||||
SWScoreboard.startPlayerBoards();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -68,7 +68,7 @@ public class SWScoreboard {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void startPlayerBoards() {
|
static {
|
||||||
Bukkit.getScheduler().scheduleSyncRepeatingTask(Core.getInstance(), () -> {
|
Bukkit.getScheduler().scheduleSyncRepeatingTask(Core.getInstance(), () -> {
|
||||||
synchronized (playerBoards) {
|
synchronized (playerBoards) {
|
||||||
for(Map.Entry<Player, SWScoreboard> entry : playerBoards.entrySet()) {
|
for(Map.Entry<Player, SWScoreboard> entry : playerBoards.entrySet()) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren