2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-05 04:48:02 +00:00

log version / build date

This commit is contained in:
mohammed jasem alaajel 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

@ -49,7 +49,7 @@ proxy-id: "proxy-1"
# since version 0.8.0 Internally now uses JedisPooled instead of Jedis, JedisPool. # since version 0.8.0 Internally now uses JedisPooled instead of Jedis, JedisPool.
# which will break compatibility with old plugins that uses RedisBungee 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 # disabled by default
# ignored when cluster mode is enabled # ignored when cluster mode is enabled
enable-jedis-pool-compatibility: false enable-jedis-pool-compatibility: false

View File

@ -25,6 +25,7 @@ default-language: en
# https://minecraft.fandom.com/wiki/Language # https://minecraft.fandom.com/wiki/Language
use-client-language: true use-client-language: true
# messages
messages: messages:
logged-in-other-location: logged-in-other-location:
en: "<color:red>You logged in from another location!" en: "<color:red>You logged in from another location!"
@ -36,4 +37,18 @@ messages:
en: "<color:green>Connecting you to %s..." en: "<color:green>Connecting you to %s..."
# 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: #commands:
#

View File

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

View File

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