Add check on plugin message recieve

This commit is contained in:
ajgeiss0702
2021-05-04 18:33:31 +00:00
parent 2b48e4b6b5
commit 8b776863a0
+1
View File
@@ -281,6 +281,7 @@ public class Main extends Plugin implements Listener {
public void onMessage(PluginMessageEvent e) {
//getLogger().info("Recieved message of "+e.getTag());
if(!e.getTag().equals("ajqueue:tobungee")) return;
if(!(e.getReceiver() instanceof ProxiedPlayer)) return;
e.setCancelled(true);
DataInputStream in = new DataInputStream(new ByteArrayInputStream(e.getData()));
try {