periodic team fetch
This commit is contained in:
parent
1fef363c50
commit
a4289d5ac9
@ -22,7 +22,12 @@ public class Teams extends Appliance implements DisplayName.Prefixed, DisplayNam
|
||||
private List<VaroTeam> teams = List.of();
|
||||
|
||||
public Teams() {
|
||||
this.refreshTeamList();
|
||||
Bukkit.getScheduler().runTaskTimerAsynchronously(
|
||||
Main.instance(),
|
||||
this::refreshTeamList,
|
||||
0,
|
||||
Ticks.TICKS_PER_SECOND * 60
|
||||
);
|
||||
}
|
||||
|
||||
public void refreshTeamList() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user