ignore bungeecord commands override on velocity

This commit is contained in:
mohammed jasem alaajel 2023-09-19 15:04:32 +04:00 committed by mohammed jasem alaajel
parent 76c362cf66
commit 6bcba06f7a
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -254,7 +254,8 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player>, 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<Player>, 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));