Archiviert
1
0

Fix BrandListener

Dieser Commit ist enthalten in:
Chaoscaot 2021-05-10 22:18:59 +02:00
Ursprung a3e8b1e95c
Commit 8567f920c4

Datei anzeigen

@ -21,7 +21,6 @@ package de.steamwar.bungeecore.listeners;
import de.steamwar.bungeecore.BungeeCore; import de.steamwar.bungeecore.BungeeCore;
import de.steamwar.bungeecore.Message; import de.steamwar.bungeecore.Message;
import de.steamwar.bungeecore.sql.SteamwarUser;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator; import io.netty.buffer.ByteBufAllocator;
import net.md_5.bungee.api.connection.ProxiedPlayer; 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.event.EventHandler;
import net.md_5.bungee.protocol.DefinedPacket; import net.md_5.bungee.protocol.DefinedPacket;
import net.md_5.bungee.protocol.ProtocolConstants; import net.md_5.bungee.protocol.ProtocolConstants;
import net.md_5.bungee.protocol.packet.PluginMessage;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -37,7 +35,7 @@ public class BrandListener extends BasicListener {
@EventHandler @EventHandler
public void onServerSwitch(PluginMessageEvent event) { 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; return;
} }