|
7 | 7 | import net.kyori.adventure.text.minimessage.MiniMessage;
|
8 | 8 | import net.kyori.adventure.text.minimessage.tag.resolver.TagResolver;
|
9 | 9 | import net.kyori.adventure.text.minimessage.tag.standard.StandardTags;
|
10 |
| - |
11 | 10 | import java.util.ArrayList;
|
12 | 11 | import java.util.Collection;
|
13 | 12 | import java.util.List;
|
@@ -44,18 +43,18 @@ public static boolean removeFromWhitelist(ConfigCache configCache, String comman
|
44 | 43 | }
|
45 | 44 |
|
46 | 45 | public static Component helpComponent(String baseCommand, boolean showReloadCommand, boolean showAdminCommands) {
|
47 |
| - Component component = miniMessage.deserialize("<rainbow><bold>CommandWhitelist by YouHaveTrouble") |
| 46 | + Component component = miniMessage.deserialize("<rainbow><bold>CommandWhitelist by YouHaveTrouble</bold>") |
48 | 47 | .append(Component.newline());
|
49 |
| - component = component.append(Component.text("/" + baseCommand + " help").color(NamedTextColor.AQUA).append(Component.text(" - Displays this message").color(NamedTextColor.BLUE))); |
| 48 | + component = component.append(Component.text(baseCommand + " help").color(NamedTextColor.AQUA).append(Component.text(" - Displays this message").color(NamedTextColor.BLUE))); |
50 | 49 | if (showReloadCommand) {
|
51 | 50 | component = component.append(Component.newline());
|
52 |
| - component = component.append(Component.text("/" + baseCommand + " reload").color(NamedTextColor.AQUA).append(Component.text(" - Reloads plugin configuration").color(NamedTextColor.BLUE))); |
| 51 | + component = component.append(Component.text(baseCommand + " reload").color(NamedTextColor.AQUA).append(Component.text(" - Reloads plugin configuration").color(NamedTextColor.BLUE))); |
53 | 52 | }
|
54 | 53 | if (showAdminCommands) {
|
55 | 54 | component = component.append(Component.newline());
|
56 |
| - component = component.append(Component.text("/" + baseCommand + " add <group> <command>").color(NamedTextColor.AQUA).append(Component.text(" - Add a command to selected permission group").color(NamedTextColor.BLUE))); |
| 55 | + component = component.append(Component.text(baseCommand + " add <group> <command>").color(NamedTextColor.AQUA).append(Component.text(" - Add a command to selected permission group").color(NamedTextColor.BLUE))); |
57 | 56 | component = component.append(Component.newline());
|
58 |
| - component = component.append(Component.text("/" + baseCommand + " remove <group> <command>").color(NamedTextColor.AQUA).append(Component.text(" - Removes a command from selected permission group").color(NamedTextColor.BLUE))); |
| 57 | + component = component.append(Component.text(baseCommand + " remove <group> <command>").color(NamedTextColor.AQUA).append(Component.text(" - Removes a command from selected permission group").color(NamedTextColor.BLUE))); |
59 | 58 | }
|
60 | 59 | return component;
|
61 | 60 | }
|
|
0 commit comments