From 6bcba06f7aa0f66ed2759c59e50b84f67053d6a4 Mon Sep 17 00:00:00 2001 From: mohammed jasem alaajel Date: Tue, 19 Sep 2023 15:04:32 +0400 Subject: [PATCH] ignore bungeecord commands override on velocity --- RedisBungee-API/src/main/resources/config.yml | 1 + .../minecraft/redisbungee/RedisBungeeVelocityPlugin.java | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/RedisBungee-API/src/main/resources/config.yml b/RedisBungee-API/src/main/resources/config.yml index 81f93c5..5d6c62c 100644 --- a/RedisBungee-API/src/main/resources/config.yml +++ b/RedisBungee-API/src/main/resources/config.yml @@ -70,6 +70,7 @@ register-legacy-commands: false # # Please note that with build 787+, most commands overridden by RedisBungee were moved to # modules, and these must be disabled or overridden yourself. +# ignored on velocity override-bungee-commands: false # A list of IP addresses for which RedisBungee will not modify the response for, useful for automatic diff --git a/RedisBungee-Velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java b/RedisBungee-Velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java index 2403bc5..874799b 100644 --- a/RedisBungee-Velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java +++ b/RedisBungee-Velocity/src/main/java/com/imaginarycode/minecraft/redisbungee/RedisBungeeVelocityPlugin.java @@ -254,7 +254,8 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin, Con @Override public void initialize() { - logInfo("Initializing RedisBungee.....");; + logInfo("Initializing RedisBungee....."); + ; // start heartbeat task // heartbeat and clean up this.heartbeatTask = server.getScheduler().buildTask(this, this.proxyDataManager::publishHeartbeat).repeat(Duration.ofSeconds(1)).schedule(); @@ -272,9 +273,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin, Con // register legacy commands if (configuration.doRegisterLegacyCommands()) { // Override Velocity commands - if (configuration.doOverrideBungeeCommands()) { - getProxy().getCommandManager().register("glist", new RedisBungeeCommands.GlistCommand(this), "redisbungee", "rglist"); - } + getProxy().getCommandManager().register("glist", new RedisBungeeCommands.GlistCommand(this), "redisbungee", "rglist"); getProxy().getCommandManager().register("sendtoall", new RedisBungeeCommands.SendToAll(this), "rsendtoall"); getProxy().getCommandManager().register("serverid", new RedisBungeeCommands.ServerId(this), "rserverid"); getProxy().getCommandManager().register("serverids", new RedisBungeeCommands.ServerIds(this));