From 3493df35e9e340c405c35f1cabfff5ebc7f6e090 Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+ChipmunkMC@users.noreply.github.com> Date: Sat, 29 Apr 2023 23:26:16 -0400 Subject: [PATCH] fixes --- src/main/java/land/chipmunk/chipmunkbot/plugins/ChatPlugin.java | 2 +- src/main/java/land/chipmunk/chipmunkbot/util/UUIDUtilities.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkbot/plugins/ChatPlugin.java b/src/main/java/land/chipmunk/chipmunkbot/plugins/ChatPlugin.java index a3e438d..e903c37 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/plugins/ChatPlugin.java +++ b/src/main/java/land/chipmunk/chipmunkbot/plugins/ChatPlugin.java @@ -109,7 +109,7 @@ public class ChatPlugin extends SessionAdapter { public void tellraw (Component message, String targets) { final int maxLength = client.core().maxCommandLength(); String command = "minecraft:tellraw " + targets + " " + GsonComponentSerializer.gson().serialize(message); - if (command.length() > maxLength) command = "w " + targets + " " + ComponentUtilities.stringify(message); + if (command.length() > maxLength) command = "minecraft:w " + targets + " " + ComponentUtilities.stringify(message); client.core().run(command); } public void tellraw (Component message) { tellraw(message, "@a"); } diff --git a/src/main/java/land/chipmunk/chipmunkbot/util/UUIDUtilities.java b/src/main/java/land/chipmunk/chipmunkbot/util/UUIDUtilities.java index ed3645e..17a789c 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/util/UUIDUtilities.java +++ b/src/main/java/land/chipmunk/chipmunkbot/util/UUIDUtilities.java @@ -28,6 +28,6 @@ public class UUIDUtilities { return "[I;" + array[0] + "," + array[1] + "," + array[2] + "," + array[3] + "]"; // TODO: improve lol } - public static String selector (UUID uuid) { return "@a[limit=1,nbt={UUID:" + snbt(uuid) + "}]"; } + public static String selector (UUID uuid) { return "@p[nbt={UUID:" + snbt(uuid) + "}]"; } public static String exclusiveSelector (UUID uuid) { return "@a[nbt=!{UUID:" + snbt(uuid) + "}]"; } }