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

oops, bungeecord code was not updated to handle kick if player inside same proxy

This commit is contained in:
mohammed jasem alaajel 2022-07-19 15:43:58 +04:00
parent c207b4a0a2
commit 17e6e12c24

View File

@ -918,6 +918,8 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
@Override @Override
public void kickPlayer(UUID playerUniqueId, String message) { public void kickPlayer(UUID playerUniqueId, String message) {
// first handle on origin proxy if player not found publish the payload
if (!dataManager.handleKick(playerUniqueId, message)) {
new RedisTask<Void>(api) { new RedisTask<Void>(api) {
@Override @Override
public Void jedisTask(Jedis jedis) { public Void jedisTask(Jedis jedis) {
@ -932,6 +934,7 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
} }
}.execute(); }.execute();
} }
}
@Override @Override
public void kickPlayer(String playerName, String message) { public void kickPlayer(String playerName, String message) {