forked from ChomeNS/chomens-bot-java
alisa asnd remove d ebfbuegbu alieie niein eni
ok i will sleep gn
This commit is contained in:
parent
3134d3e525
commit
86390f3801
2 changed files with 10 additions and 1 deletions
|
@ -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()))
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue