Skip to content

Commit

Permalink
Save vote cache file more often on proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Feb 22, 2024
1 parent 6f37829 commit 4014046
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,9 @@ public void run() {
debug("Checking nonvotedplayers.yml...");
nonVotedPlayersCache.check();
}
if (voteCacheFile != null) {
voteCacheFile.save();
}
}
}, 1l, 60l, TimeUnit.MINUTES);
} else if (method.equals(BungeeMethod.SOCKETS)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,9 @@ public void debug(String text) {
debug("Checking nonvotedplayerscache.yml...");
nonVotedPlayersCache.check();
}
if (voteCacheFile != null) {
voteCacheFile.save();
}
}).delay(1L, TimeUnit.MINUTES).repeat(60l, TimeUnit.MINUTES).schedule();
} else if (method.equals(BungeeMethod.SOCKETS)) {
encryptionHandler = new EncryptionHandler(new File(dataDirectory.toFile(), "secretkey.key"));
Expand Down

0 comments on commit 4014046

Please sign in to comment.