Fix backwards compatibility with redis

This commit is contained in:
Luck 2017-01-22 22:49:11 +00:00
parent 8025f3a082
commit d93cc826b2
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
3 changed files with 9 additions and 0 deletions

View File

@ -202,6 +202,9 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
// initialise messaging
String messagingType = getConfiguration().get(ConfigKeys.MESSAGING_SERVICE).toLowerCase();
if (messagingType.equals("none") && getConfiguration().get(ConfigKeys.REDIS_ENABLED)) {
messagingType = "redis";
}
if (messagingType.equals("redis")) {
getLog().info("Loading redis...");
if (getConfiguration().get(ConfigKeys.REDIS_ENABLED)) {

View File

@ -133,6 +133,9 @@ public class LPBungeePlugin extends Plugin implements LuckPermsPlugin {
// initialise messaging
String messagingType = getConfiguration().get(ConfigKeys.MESSAGING_SERVICE).toLowerCase();
if (messagingType.equals("none") && getConfiguration().get(ConfigKeys.REDIS_ENABLED)) {
messagingType = "redis";
}
if (messagingType.equals("redis")) {
getLog().info("Loading redis...");
if (getConfiguration().get(ConfigKeys.REDIS_ENABLED)) {

View File

@ -189,6 +189,9 @@ public class LPSpongePlugin implements LuckPermsPlugin {
// initialise messaging
String messagingType = getConfiguration().get(ConfigKeys.MESSAGING_SERVICE).toLowerCase();
if (messagingType.equals("none") && getConfiguration().get(ConfigKeys.REDIS_ENABLED)) {
messagingType = "redis";
}
if (messagingType.equals("redis")) {
getLog().info("Loading redis...");
if (getConfiguration().get(ConfigKeys.REDIS_ENABLED)) {