From e49546d3d82a06ed3393c7d26276d43d2b295951 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 11 Jun 2022 09:44:39 +0200 Subject: [PATCH] Fix Remote Plugin Messages --- src/de/steamwar/bungeecore/network/NetworkReceiver.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/network/NetworkReceiver.java b/src/de/steamwar/bungeecore/network/NetworkReceiver.java index c0818f4..97a9b7c 100644 --- a/src/de/steamwar/bungeecore/network/NetworkReceiver.java +++ b/src/de/steamwar/bungeecore/network/NetworkReceiver.java @@ -7,6 +7,7 @@ import net.md_5.bungee.api.config.ServerInfo; import net.md_5.bungee.api.connection.Server; import net.md_5.bungee.api.event.PluginMessageEvent; import net.md_5.bungee.event.EventHandler; +import net.md_5.bungee.event.EventPriority; import java.net.InetSocketAddress; import java.util.Arrays; @@ -20,7 +21,7 @@ public class NetworkReceiver extends BasicListener { public static ServerInfo sender; - @EventHandler + @EventHandler(priority = EventPriority.HIGHEST) public void onPluginMessage(PluginMessageEvent event) { if (blockedTags.contains(event.getTag()) && !allowedAddresses.contains(((InetSocketAddress) event.getSender().getSocketAddress()).getHostString())) { BungeeCore.log(Level.SEVERE, ((InetSocketAddress) event.getSender().getSocketAddress()).getHostString() + " tried to send a plugin message with tag " + event.getTag());