log version / build date

This commit is contained in:
mohammed jasem alaajel 2023-09-14 10:34:41 +04:00
parent 570c68d266
commit 9b3b154ede
No known key found for this signature in database
4 changed files with 22 additions and 3 deletions

View File

@ -49,7 +49,7 @@ proxy-id: "proxy-1"
# since version 0.8.0 Internally now uses JedisPooled instead of Jedis, JedisPool.
# which will break compatibility with old plugins that uses RedisBungee JedisPool
# so to mitigate this issue, we will instruct RedisBungee to init an JedisPool for compatibility reasons.
# so to mitigate this issue, RedisBungee will create an JedisPool for compatibility reasons.
# disabled by default
# ignored when cluster mode is enabled
enable-jedis-pool-compatibility: false

View File

@ -25,6 +25,7 @@ default-language: en
# https://minecraft.fandom.com/wiki/Language
use-client-language: true
# messages
messages:
logged-in-other-location:
en: "<color:red>You logged in from another location!"
@ -36,4 +37,18 @@ messages:
en: "<color:green>Connecting you to %s..."
# commands:
# commands common messages:
commands-common:
player-not-found:
en: "<color:red>Player not found."
player-not-specified:
en: "<color:red>You must specify a player name."
command-not-specified:
en: "<color:red>You must specify a command to be run."
# commands
#commands:
#

View File

@ -185,6 +185,8 @@ public class RedisBungee extends Plugin implements RedisBungeePlugin<ProxiedPlay
@Override
public void initialize() {
logInfo("Initializing RedisBungee.....");
logInfo("Version: {}", Constants.VERSION);
logInfo("Build date: {}", Constants.BUILD_DATE);
ThreadFactory factory = ((ThreadPoolExecutor) getExecutorService()).getThreadFactory();
ScheduledExecutorService service = Executors.newScheduledThreadPool(24, factory);
try {

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();