mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-05 00:56:42 +00:00
That's right, Redis is working!
- Fix end date for bans not being correct - Add a lot of debug information - Add ban reasons
This commit is contained in:
@ -101,6 +101,14 @@ public class Plex extends JavaPlugin
|
||||
Metrics metrics = new Metrics(this, 14143);
|
||||
PlexLog.log("Enabled Metrics");
|
||||
|
||||
if (redisConnection.isEnabled())
|
||||
{
|
||||
redisConnection.openPool();
|
||||
}
|
||||
else
|
||||
{
|
||||
PlexLog.log("Redis is disabled in the configuration file, not connecting.");
|
||||
}
|
||||
|
||||
if (storageType == StorageType.MONGODB)
|
||||
{
|
||||
@ -139,11 +147,11 @@ public class Plex extends JavaPlugin
|
||||
@Override
|
||||
public void onDisable()
|
||||
{
|
||||
/*if (redisConnection.getJedis().isConnected())
|
||||
if (redisConnection.isEnabled() && redisConnection.getJedis().isConnected())
|
||||
{
|
||||
PlexLog.log("Disabling Redis/Jedis. No memory leaks in this Anarchy server !");
|
||||
PlexLog.log("Disabling Redis/Jedis. No memory leaks in this Anarchy server!");
|
||||
redisConnection.getJedis().close();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
private void generateWorlds()
|
||||
|
Reference in New Issue
Block a user