2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-08 16:10:26 +00:00

log version / build date

This commit is contained in:
2023-09-14 10:34:41 +04:00
committed by mohammed jasem alaajel
parent b7433bc9a3
commit 76c362cf66
4 changed files with 22 additions and 3 deletions

View File

@@ -93,6 +93,8 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player>, Con
this.server = server;
this.logger = logger;
this.dataFolder = dataDirectory;
logInfo("Version: {}", Constants.VERSION);
logInfo("Build date: {}", Constants.BUILD_DATE);
try {
loadConfig(this, dataDirectory);
} catch (IOException e) {
@@ -252,7 +254,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player>, Con
@Override
public void initialize() {
logInfo("Initializing RedisBungee.....");
logInfo("Initializing RedisBungee.....");;
// start heartbeat task
// heartbeat and clean up
this.heartbeatTask = server.getScheduler().buildTask(this, this.proxyDataManager::publishHeartbeat).repeat(Duration.ofSeconds(1)).schedule();