2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-12-23 02:28:01 +00:00

change method naming of updateProxiesIds

This commit is contained in:
mohammed jasem alaajel 2022-07-26 12:42:42 +04:00
parent e7b241edd6
commit 92f5e04edf
4 changed files with 7 additions and 8 deletions

View File

@ -12,7 +12,6 @@ import com.imaginarycode.minecraft.redisbungee.api.tasks.RedisTask;
import com.imaginarycode.minecraft.redisbungee.api.util.RedisUtil;
import com.imaginarycode.minecraft.redisbungee.api.util.payload.PayloadUtils;
import com.imaginarycode.minecraft.redisbungee.api.util.uuid.UUIDTranslator;
import org.checkerframework.checker.units.qual.A;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.Protocol;
@ -377,6 +376,6 @@ public interface RedisBungeePlugin<P> extends EventsPlatform, ConfigLoader {
RedisBungeeMode getRedisBungeeMode();
void updateProxyIds();
void updateProxiesIds();
}

View File

@ -31,7 +31,7 @@ public class HeartbeatTask extends RedisTask<Void>{
return null;
}
try {
plugin.updateProxyIds();
plugin.updateProxiesIds();
globalPlayerCount.set(plugin.getCurrentCount());
} catch (Throwable e) {
plugin.logFatal("Unable to update data - did your Redis server go away?");
@ -52,7 +52,7 @@ public class HeartbeatTask extends RedisTask<Void>{
return null;
}
try {
plugin.updateProxyIds();
plugin.updateProxiesIds();
globalPlayerCount.set(plugin.getCurrentCount());
} catch (Throwable e) {
plugin.logFatal("Unable to update data - did your Redis server go away?");

View File

@ -210,7 +210,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
InitialUtils.checkRedisVersion(this);
// check if this proxy is recovering from a crash and start heart the beat.
InitialUtils.checkIfRecovering(this, getDataFolder().toPath());
updateProxyIds();
updateProxiesIds();
uuidTranslator = new UUIDTranslator(this);
heartbeatTask = service.scheduleAtFixedRate(new HeartbeatTask(this, this.globalPlayerCount), 0, HeartbeatTask.INTERVAL, HeartbeatTask.REPEAT_INTERVAL_TIME_UNIT);
dataManager = new BungeeDataManager(this);
@ -294,7 +294,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
@Override
public void updateProxyIds() {
public void updateProxiesIds() {
proxiesIds = getCurrentProxiesIds(false);
}

View File

@ -234,7 +234,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
@Override
public void initialize() {
updateProxyIds();
updateProxiesIds();
// start heartbeat task
heartbeatTask = getProxy().getScheduler().buildTask(this, new HeartbeatTask(this, this.globalPlayerCount)).repeat(HeartbeatTask.INTERVAL, HeartbeatTask.REPEAT_INTERVAL_TIME_UNIT).schedule();
@ -323,7 +323,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
}
@Override
public void updateProxyIds() {
public void updateProxiesIds() {
this.proxiesIds = this.getCurrentProxiesIds(false);
}