mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-23 04:28:01 +00:00
change method naming of updateProxiesIds
This commit is contained in:
parent
e7b241edd6
commit
92f5e04edf
@ -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.RedisUtil;
|
||||||
import com.imaginarycode.minecraft.redisbungee.api.util.payload.PayloadUtils;
|
import com.imaginarycode.minecraft.redisbungee.api.util.payload.PayloadUtils;
|
||||||
import com.imaginarycode.minecraft.redisbungee.api.util.uuid.UUIDTranslator;
|
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.Jedis;
|
||||||
import redis.clients.jedis.JedisCluster;
|
import redis.clients.jedis.JedisCluster;
|
||||||
import redis.clients.jedis.Protocol;
|
import redis.clients.jedis.Protocol;
|
||||||
@ -377,6 +376,6 @@ public interface RedisBungeePlugin<P> extends EventsPlatform, ConfigLoader {
|
|||||||
|
|
||||||
RedisBungeeMode getRedisBungeeMode();
|
RedisBungeeMode getRedisBungeeMode();
|
||||||
|
|
||||||
void updateProxyIds();
|
void updateProxiesIds();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ public class HeartbeatTask extends RedisTask<Void>{
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
plugin.updateProxyIds();
|
plugin.updateProxiesIds();
|
||||||
globalPlayerCount.set(plugin.getCurrentCount());
|
globalPlayerCount.set(plugin.getCurrentCount());
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
plugin.logFatal("Unable to update data - did your Redis server go away?");
|
plugin.logFatal("Unable to update data - did your Redis server go away?");
|
||||||
@ -52,7 +52,7 @@ public class HeartbeatTask extends RedisTask<Void>{
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
plugin.updateProxyIds();
|
plugin.updateProxiesIds();
|
||||||
globalPlayerCount.set(plugin.getCurrentCount());
|
globalPlayerCount.set(plugin.getCurrentCount());
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
plugin.logFatal("Unable to update data - did your Redis server go away?");
|
plugin.logFatal("Unable to update data - did your Redis server go away?");
|
||||||
|
@ -210,7 +210,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
|
|||||||
InitialUtils.checkRedisVersion(this);
|
InitialUtils.checkRedisVersion(this);
|
||||||
// check if this proxy is recovering from a crash and start heart the beat.
|
// check if this proxy is recovering from a crash and start heart the beat.
|
||||||
InitialUtils.checkIfRecovering(this, getDataFolder().toPath());
|
InitialUtils.checkIfRecovering(this, getDataFolder().toPath());
|
||||||
updateProxyIds();
|
updateProxiesIds();
|
||||||
uuidTranslator = new UUIDTranslator(this);
|
uuidTranslator = new UUIDTranslator(this);
|
||||||
heartbeatTask = service.scheduleAtFixedRate(new HeartbeatTask(this, this.globalPlayerCount), 0, HeartbeatTask.INTERVAL, HeartbeatTask.REPEAT_INTERVAL_TIME_UNIT);
|
heartbeatTask = service.scheduleAtFixedRate(new HeartbeatTask(this, this.globalPlayerCount), 0, HeartbeatTask.INTERVAL, HeartbeatTask.REPEAT_INTERVAL_TIME_UNIT);
|
||||||
dataManager = new BungeeDataManager(this);
|
dataManager = new BungeeDataManager(this);
|
||||||
@ -294,7 +294,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
|
|||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateProxyIds() {
|
public void updateProxiesIds() {
|
||||||
proxiesIds = getCurrentProxiesIds(false);
|
proxiesIds = getCurrentProxiesIds(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ public class RedisBungeeVelocityPlugin implements RedisBungeePlugin<Player> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
updateProxyIds();
|
updateProxiesIds();
|
||||||
// start heartbeat task
|
// start heartbeat task
|
||||||
heartbeatTask = getProxy().getScheduler().buildTask(this, new HeartbeatTask(this, this.globalPlayerCount)).repeat(HeartbeatTask.INTERVAL, HeartbeatTask.REPEAT_INTERVAL_TIME_UNIT).schedule();
|
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
|
@Override
|
||||||
public void updateProxyIds() {
|
public void updateProxiesIds() {
|
||||||
this.proxiesIds = this.getCurrentProxiesIds(false);
|
this.proxiesIds = this.getCurrentProxiesIds(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user