From 1467ac9fd3c1ff72aa87060107503f2a527dcdae Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Thu, 31 Aug 2023 13:00:19 +0400 Subject: [PATCH] config changes jedispool is now disabled by default, some minor config changes --- .../minecraft/redisbungee/api/config/ConfigLoader.java | 2 +- RedisBungee-API/src/main/resources/config.yml | 9 +++++---- RedisBungee-API/src/main/resources/messages.yml | 3 +-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/config/ConfigLoader.java b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/config/ConfigLoader.java index b92365e..428382c 100644 --- a/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/config/ConfigLoader.java +++ b/RedisBungee-API/src/main/java/com/imaginarycode/minecraft/redisbungee/api/config/ConfigLoader.java @@ -115,7 +115,7 @@ public interface ConfigLoader { throw new RuntimeException("No redis server specified"); } JedisPool jedisPool = null; - if (node.getNode("enable-jedis-pool-compatibility").getBoolean(true)) { + if (node.getNode("enable-jedis-pool-compatibility").getBoolean(false)) { JedisPoolConfig config = new JedisPoolConfig(); config.setMaxTotal(node.getNode("compatibility-max-connections").getInt(3)); config.setBlockWhenExhausted(true); diff --git a/RedisBungee-API/src/main/resources/config.yml b/RedisBungee-API/src/main/resources/config.yml index 85ef226..93756ee 100644 --- a/RedisBungee-API/src/main/resources/config.yml +++ b/RedisBungee-API/src/main/resources/config.yml @@ -1,7 +1,7 @@ # RedisBungee configuration file. -# Get Redis from http://redis.io/ +# you need Redis so get Redis from http://redis.io/ or install it from your package manager -# The Redis server you use. +# The Redis server you will use. # these settings are ignored when cluster mode is enabled. redis-server: 127.0.0.1 redis-port: 6379 @@ -48,9 +48,10 @@ proxy-id: "test-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. -# enabled by default +# disabled by default # ignored when cluster mode is enabled -enable-jedis-pool-compatibility: true +enable-jedis-pool-compatibility: false + # max connections for the compatibility pool compatibility-max-connections: 3 diff --git a/RedisBungee-API/src/main/resources/messages.yml b/RedisBungee-API/src/main/resources/messages.yml index 737b52c..a1b1853 100644 --- a/RedisBungee-API/src/main/resources/messages.yml +++ b/RedisBungee-API/src/main/resources/messages.yml @@ -1,3 +1,2 @@ logged-in-other-location: "§cYou logged in from another location!" -already-logged-in: "§cYou are already logged in!" -error: "§cError has occurred" \ No newline at end of file +already-logged-in: "§cYou are already logged in!" \ No newline at end of file