Skip to content

Commit

Permalink
update StorageAgent usage in NumberTopHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Jun 5, 2024
1 parent 73dd330 commit 3ca3c77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected NumberTopHolder(TopperPlaceholderLeaderboard instance, String name) {
int saveDelay = instance.get(MainConfig.class).getTaskSaveDelay();
return AsyncScheduler.get(instance).runTimer(runnable, saveDelay, saveDelay)::cancel;
});
storageAgent.addOnLoadListener(() -> {
getListenerManager().add(StorageAgent.LOAD_EVENT, () -> {
if (instance.get(MainConfig.class).isLoadAllOfflinePlayers()) {
GlobalScheduler.get(instance).run(() -> {
for (OfflinePlayer player : instance.getServer().getOfflinePlayers()) {
Expand Down

0 comments on commit 3ca3c77

Please sign in to comment.