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:
parent
c207b4a0a2
commit
17e6e12c24
@ -918,25 +918,28 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void kickPlayer(UUID playerUniqueId, String message) {
|
public void kickPlayer(UUID playerUniqueId, String message) {
|
||||||
new RedisTask<Void>(api) {
|
// first handle on origin proxy if player not found publish the payload
|
||||||
@Override
|
if (!dataManager.handleKick(playerUniqueId, message)) {
|
||||||
public Void jedisTask(Jedis jedis) {
|
new RedisTask<Void>(api) {
|
||||||
PayloadUtils.kickPlayer(playerUniqueId, message, jedis);
|
@Override
|
||||||
return null;
|
public Void jedisTask(Jedis jedis) {
|
||||||
}
|
PayloadUtils.kickPlayer(playerUniqueId, message, jedis);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Void clusterJedisTask(JedisCluster jedisCluster) {
|
public Void clusterJedisTask(JedisCluster jedisCluster) {
|
||||||
PayloadUtils.kickPlayer(playerUniqueId, message, jedisCluster);
|
PayloadUtils.kickPlayer(playerUniqueId, message, jedisCluster);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}.execute();
|
}.execute();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void kickPlayer(String playerName, String message) {
|
public void kickPlayer(String playerName, String message) {
|
||||||
// fetch the uuid
|
// fetch the uuid
|
||||||
UUID playerUUID = this.uuidTranslator.getTranslatedUuid(playerName,true);
|
UUID playerUUID = this.uuidTranslator.getTranslatedUuid(playerName, true);
|
||||||
kickPlayer(playerUUID, message);
|
kickPlayer(playerUUID, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user