File tree Expand file tree Collapse file tree
Commands/src/main/java/org/broken/arrow/library/command Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ public class CommandRegister implements CommandRegistering {
3737 private static boolean hasColorLib ;
3838 private boolean registeredMainCommand ;
3939
40+ /**
41+ * Create new instance where it also checks if the color translator is included
42+ * when shaded
43+ */
4044 public CommandRegister () {
4145 try {
4246 TextTranslator .getInstance ();
@@ -49,6 +53,7 @@ public CommandRegister() {
4953 @ Override
5054 public CommandBuilder registerCommand (final Plugin plugin , final String mainCommand ) {
5155 final CommandBuilder commandBuilder = new CommandBuilder ();
56+
5257 commands .compute (mainCommand , (commandLabel , mainCommandHandler ) -> {
5358 if (mainCommandHandler != null ) {
5459 final CommandProperty command = mainCommandHandler .getMainCommand ();
You can’t perform that action at this time.
0 commit comments