mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2025-04-20 01:27:07 +00:00
ignore bungeecord commands override on velocity
This commit is contained in:
parent
76c362cf66
commit
6bcba06f7a
@ -70,6 +70,7 @@ register-legacy-commands: false
|
|||||||
#
|
#
|
||||||
# Please note that with build 787+, most commands overridden by RedisBungee were moved to
|
# Please note that with build 787+, most commands overridden by RedisBungee were moved to
|
||||||
# modules, and these must be disabled or overridden yourself.
|
# modules, and these must be disabled or overridden yourself.
|
||||||
|
# ignored on velocity
|
||||||
override-bungee-commands: false
|
override-bungee-commands: false
|
||||||
|
|
||||||
# A list of IP addresses for which RedisBungee will not modify the response for, useful for automatic
|
# A list of IP addresses for which RedisBungee will not modify the response for, useful for automatic
|
||||||
|
@ -254,7 +254,8 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player>, Con
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
logInfo("Initializing RedisBungee.....");;
|
logInfo("Initializing RedisBungee.....");
|
||||||
|
;
|
||||||
// start heartbeat task
|
// start heartbeat task
|
||||||
// heartbeat and clean up
|
// heartbeat and clean up
|
||||||
this.heartbeatTask = server.getScheduler().buildTask(this, this.proxyDataManager::publishHeartbeat).repeat(Duration.ofSeconds(1)).schedule();
|
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
|
// register legacy commands
|
||||||
if (configuration.doRegisterLegacyCommands()) {
|
if (configuration.doRegisterLegacyCommands()) {
|
||||||
// Override Velocity commands
|
// 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("sendtoall", new RedisBungeeCommands.SendToAll(this), "rsendtoall");
|
||||||
getProxy().getCommandManager().register("serverid", new RedisBungeeCommands.ServerId(this), "rserverid");
|
getProxy().getCommandManager().register("serverid", new RedisBungeeCommands.ServerId(this), "rserverid");
|
||||||
getProxy().getCommandManager().register("serverids", new RedisBungeeCommands.ServerIds(this));
|
getProxy().getCommandManager().register("serverids", new RedisBungeeCommands.ServerIds(this));
|
||||||
|
Loading…
Reference in New Issue
Block a user