From 8567f920c4882a565b706a81b2e6ad03ebc93e5b Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Mon, 10 May 2021 22:18:59 +0200 Subject: [PATCH] Fix BrandListener --- src/de/steamwar/bungeecore/listeners/BrandListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/de/steamwar/bungeecore/listeners/BrandListener.java b/src/de/steamwar/bungeecore/listeners/BrandListener.java index b7bbe79..cbc16a4 100644 --- a/src/de/steamwar/bungeecore/listeners/BrandListener.java +++ b/src/de/steamwar/bungeecore/listeners/BrandListener.java @@ -21,7 +21,6 @@ package de.steamwar.bungeecore.listeners; import de.steamwar.bungeecore.BungeeCore; import de.steamwar.bungeecore.Message; -import de.steamwar.bungeecore.sql.SteamwarUser; import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufAllocator; import net.md_5.bungee.api.connection.ProxiedPlayer; @@ -29,7 +28,6 @@ import net.md_5.bungee.api.event.PluginMessageEvent; import net.md_5.bungee.event.EventHandler; import net.md_5.bungee.protocol.DefinedPacket; import net.md_5.bungee.protocol.ProtocolConstants; -import net.md_5.bungee.protocol.packet.PluginMessage; import java.util.concurrent.TimeUnit; @@ -37,7 +35,7 @@ public class BrandListener extends BasicListener { @EventHandler public void onServerSwitch(PluginMessageEvent event) { - if(event.getTag().equals("minecraft:brand") || event.getTag().equals("MC|Brand")) { + if(!event.getTag().equals("minecraft:brand") || !event.getTag().equals("MC|Brand")) { return; } -- 2.39.5