mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-04-09 00:20:26 +00:00
bumped dependices versoins and removed some unneded stuff from pom file + added ssl SUPPORT!
This commit is contained in:
@@ -19,7 +19,6 @@ import lombok.NonNull;
|
||||
import net.md_5.bungee.api.ProxyServer;
|
||||
import net.md_5.bungee.api.connection.ProxiedPlayer;
|
||||
import net.md_5.bungee.api.plugin.Plugin;
|
||||
import net.md_5.bungee.api.scheduler.ScheduledTask;
|
||||
import net.md_5.bungee.config.Configuration;
|
||||
import net.md_5.bungee.config.ConfigurationProvider;
|
||||
import net.md_5.bungee.config.YamlConfiguration;
|
||||
@@ -413,6 +412,7 @@ public final class RedisBungee extends Plugin {
|
||||
|
||||
final String redisServer = configuration.getString("redis-server", "localhost");
|
||||
final int redisPort = configuration.getInt("redis-port", 6379);
|
||||
final boolean useSSL = configuration.getBoolean("useSSL");
|
||||
String redisPassword = configuration.getString("redis-password");
|
||||
String serverId = configuration.getString("server-id");
|
||||
|
||||
@@ -433,7 +433,7 @@ public final class RedisBungee extends Plugin {
|
||||
// Create the pool...
|
||||
JedisPoolConfig config = new JedisPoolConfig();
|
||||
config.setMaxTotal(configuration.getInt("max-redis-connections", 8));
|
||||
return new JedisPool(config, redisServer, redisPort, 0, finalRedisPassword);
|
||||
return new JedisPool(config, redisServer, redisPort, 0, finalRedisPassword, useSSL);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@ redis-password: ""
|
||||
# inefficient plugins or a lot of players.
|
||||
max-redis-connections: 8
|
||||
|
||||
# since redis can support ssl by version 6 you can use ssl in redis bungee too! (
|
||||
useSSL: false
|
||||
|
||||
# An identifier for this BungeeCord instance.
|
||||
server-id: test1
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
name: RedisBungee
|
||||
name: ${project.name}
|
||||
main: com.imaginarycode.minecraft.redisbungee.RedisBungee
|
||||
version: 0.5
|
||||
author: chunkr
|
||||
version: ${project.version}
|
||||
author: Chunker and Govindas limework
|
||||
authors:
|
||||
- chunkr
|
||||
- Govindas Limework
|
||||
# This is used so that we can automatically override default BungeeCord behavior.
|
||||
softDepends: ["cmd_find", "cmd_list"]
|
||||
Reference in New Issue
Block a user