From 86390f380193e9ecf528f72754dd5765db8ad326 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Thu, 13 Jul 2023 21:12:02 +0700 Subject: [PATCH] alisa asnd remove d ebfbuegbu alieie niein eni ok i will sleep gn --- .../chomens_bot/plugins/CommandSuggestionPlugin.java | 9 +++++++++ .../chipmunk/chayapak/chomens_bot/plugins/TagPlugin.java | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java index 19af098..d6fbd99 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CommandSuggestionPlugin.java @@ -7,6 +7,7 @@ import net.kyori.adventure.text.JoinConfiguration; import net.kyori.adventure.text.TextComponent; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; public class CommandSuggestionPlugin extends ChatPlugin.Listener { @@ -37,6 +38,14 @@ public class CommandSuggestionPlugin extends ChatPlugin.Listener { output.add( Component .text(command.name) + .append( + Component.join( + JoinConfiguration.noSeparators(), + Arrays.stream(command.aliases) + .map(Component::text) + .toList() + ) + ) .append(Component.text(command.trustLevel.name())) ); } diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/TagPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/TagPlugin.java index 4c8ca23..091e289 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/TagPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/TagPlugin.java @@ -18,7 +18,7 @@ public class TagPlugin extends CorePlugin.Listener { @Override public void ready () { // might not be the best idea but whatever final String command = "minecraft:tag " + UUIDUtilities.selector(bot.profile.getId()) + " add " + tag; - System.out.println(command); + bot.core.run(command); } }