Should fix being able to send packets to manipulate spigot side

This commit is contained in:
ajgeiss0702
2021-05-08 07:46:09 -07:00
parent 2d7bdd25df
commit 0db8c671a3
+4
View File
@@ -280,6 +280,10 @@ public class Main extends Plugin implements Listener {
@EventHandler
public void onMessage(PluginMessageEvent e) {
//getLogger().info("Recieved message of "+e.getTag());
if(e.getTag().equals("ajqueue:tospigot")) {
e.setCancelled(true);
return;
}
if(!e.getTag().equals("ajqueue:tobungee")) return;
if(!(e.getReceiver() instanceof ProxiedPlayer)) return;
e.setCancelled(true);