This commit is contained in:
Chayapak 2023-06-22 18:38:17 +07:00
parent bcdbf5c2f3
commit 5cef742fef
2 changed files with 3 additions and 5 deletions

View file

@ -18,10 +18,8 @@ import com.github.steveice10.packetlib.event.session.SessionListener;
import com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack; import com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack;
import com.github.steveice10.opennbt.tag.builtin.CompoundTag; import com.github.steveice10.opennbt.tag.builtin.CompoundTag;
import com.github.steveice10.opennbt.tag.builtin.StringTag; import com.github.steveice10.opennbt.tag.builtin.StringTag;
import com.github.steveice10.mc.protocol.MinecraftProtocol;
import net.kyori.adventure.text.Component; import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.TextComponent; import net.kyori.adventure.text.TextComponent;
import net.kyori.adventure.text.event.HoverEvent;
import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
import lombok.Getter; import lombok.Getter;
import java.util.BitSet; import java.util.BitSet;
@ -47,7 +45,7 @@ public class ChatPlugin extends SessionAdapter {
systemChatParsers = new ArrayList<>(); systemChatParsers = new ArrayList<>();
systemChatParsers.add(new MinecraftChatParser(client)); systemChatParsers.add(new MinecraftChatParser(client));
systemChatParsers.add(new KaboomChatParser(client)); systemChatParsers.add(new KaboomChatParser(client));
systemChatParsers.add(new ChomeNSCustomChatParser(client)); systemChatParsers.add(new U203aChatParser(client));
} }
public void message (String message) { public void message (String message) {

View file

@ -13,10 +13,10 @@ import java.util.List;
import java.util.UUID; import java.util.UUID;
// ported from chomens sex bot // ported from chomens sex bot
public class ChomeNSCustomChatParser implements SystemChatParser { public class U203aChatParser implements SystemChatParser {
private final ChipmunkBot client; private final ChipmunkBot client;
public ChomeNSCustomChatParser (ChipmunkBot client) { public U203aChatParser(ChipmunkBot client) {
this.client = client; this.client = client;
} }