mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-22 20:28:00 +00:00
Revert "fix bungeecord incorrect channel names"
This reverts commit d8a220bcc2
.
This commit is contained in:
parent
d8a220bcc2
commit
cd4f2aded4
@ -463,7 +463,6 @@ public class RedisBungeeBungeePlugin extends Plugin implements RedisBungeePlugin
|
|||||||
}, 0, 1, TimeUnit.MINUTES);
|
}, 0, 1, TimeUnit.MINUTES);
|
||||||
}
|
}
|
||||||
getProxy().registerChannel("legacy:redisbungee");
|
getProxy().registerChannel("legacy:redisbungee");
|
||||||
getProxy().registerChannel("redisbungee:redisbungee");
|
|
||||||
getProxy().registerChannel("RedisBungee");
|
getProxy().registerChannel("RedisBungee");
|
||||||
// register commands
|
// register commands
|
||||||
if (configuration.doOverrideBungeeCommands()) {
|
if (configuration.doOverrideBungeeCommands()) {
|
||||||
|
@ -146,11 +146,7 @@ public class RedisBungeeListener extends AbstractRedisBungeeListener<LoginEvent,
|
|||||||
@SuppressWarnings("UnstableApiUsage")
|
@SuppressWarnings("UnstableApiUsage")
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPluginMessage(PluginMessageEvent event) {
|
public void onPluginMessage(PluginMessageEvent event) {
|
||||||
// this somehow has channel called RedisBungee not sure how it got here, keep it as it might break functionality
|
if ((event.getTag().equals("legacy:redisbungee") || event.getTag().equals("RedisBungee")) && event.getSender() instanceof Server) {
|
||||||
if (
|
|
||||||
(event.getTag().equals("legacy:redisbungee") || event.getTag().equals("redisbungee:redisbungee")
|
|
||||||
|| event.getTag().equals("RedisBungee")) && event.getSender() instanceof Server
|
|
||||||
) {
|
|
||||||
final String currentChannel = event.getTag();
|
final String currentChannel = event.getTag();
|
||||||
final byte[] data = Arrays.copyOf(event.getData(), event.getData().length);
|
final byte[] data = Arrays.copyOf(event.getData(), event.getData().length);
|
||||||
plugin.executeAsync(() -> {
|
plugin.executeAsync(() -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user