2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-08 16:10:26 +00:00

readd commands after i forgotten about them

This commit is contained in:
2022-06-15 06:32:22 +04:00
parent 6e02ab70db
commit eee36923c1
3 changed files with 289 additions and 10 deletions

View File

@@ -9,9 +9,10 @@ import java.util.List;
public class RedisBungeeConfiguration {
private final String serverId;
private final List<InetAddress> exemptAddresses;
private final boolean overrideBungeeCommands;
private static RedisBungeeConfiguration config;
public RedisBungeeConfiguration(String serverId, List<String> exemptAddresses) {
public RedisBungeeConfiguration(String serverId, List<String> exemptAddresses, boolean overrideBungeeCommands) {
this.serverId = serverId;
ImmutableList.Builder<InetAddress> addressBuilder = ImmutableList.builder();
@@ -20,6 +21,7 @@ public class RedisBungeeConfiguration {
}
this.exemptAddresses = addressBuilder.build();
config = this;
this.overrideBungeeCommands = overrideBungeeCommands;
}
public String getServerId() {
@@ -30,6 +32,10 @@ public class RedisBungeeConfiguration {
return exemptAddresses;
}
public boolean doOverrideBungeeCommands() {
return overrideBungeeCommands;
}
public static RedisBungeeConfiguration getConfig() {
return config;
}