mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-19 15:27:45 +01:00
Do not track the channel "BungeeCord" when using "RedisBungee" and
viceversa.
This commit is contained in:
parent
fe4099223f
commit
2187a7670a
@ -35,7 +35,23 @@ public class BungeeChannel implements PluginMessageListener {
|
||||
|
||||
@Override
|
||||
public void onPluginMessageReceived(String channel, Player player, byte[] message) {
|
||||
if (!channel.equals("BungeeCord") && !channel.equals("RedisBungee")) {
|
||||
|
||||
if (channel.equals("BungeeCord")) {
|
||||
|
||||
if (Configuration.useRedisBungee) {
|
||||
// If we use RedisBungee, we must ignore this channel.
|
||||
return;
|
||||
}
|
||||
|
||||
} else if (channel.equals("RedisBungee")) {
|
||||
|
||||
if (!Configuration.useRedisBungee) {
|
||||
// Same as above, just the opposite case.
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
// Not our channels, ignore the message.
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user