Invalid action
This commit is contained in:
@@ -53,7 +53,7 @@ public class BotVisibilityCommand extends Command {
|
||||
.color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor));
|
||||
}
|
||||
default -> {
|
||||
return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
return Component.text("Invalid action").color(NamedTextColor.RED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ public class CloopCommand extends Command {
|
||||
);
|
||||
}
|
||||
default -> {
|
||||
return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
return Component.text("Invalid action").color(NamedTextColor.RED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class EvalCommand extends Command {
|
||||
return Component.text("Reset the eval context").color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor));
|
||||
}
|
||||
default -> {
|
||||
return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
return Component.text("Invalid action").color(NamedTextColor.RED);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ public class FilterCommand extends Command {
|
||||
);
|
||||
}
|
||||
default -> {
|
||||
return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
return Component.text("Invalid action").color(NamedTextColor.RED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ public class InfoCommand extends Command {
|
||||
).color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor));
|
||||
}
|
||||
default -> {
|
||||
return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
return Component.text("Invalid action").color(NamedTextColor.RED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ public class MailCommand extends Command {
|
||||
|
||||
PersistentDataUtilities.put("mails", MailPlugin.mails);
|
||||
}
|
||||
default -> context.sendOutput(Component.text("Invalid argument").color(NamedTextColor.RED));
|
||||
default -> context.sendOutput(Component.text("Invalid action").color(NamedTextColor.RED));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ public class MusicCommand extends Command {
|
||||
case "speed" -> speed(context, args);
|
||||
case "pause", "resume" -> pause(context);
|
||||
case "info" -> info(context);
|
||||
default -> Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
default -> Component.text("Invalid action").color(NamedTextColor.RED);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ public class MusicCommand extends Command {
|
||||
public Component loop (CommandContext context, String[] args) {
|
||||
final Bot bot = context.bot;
|
||||
|
||||
if (args.length < 2) return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
if (args.length < 2) return Component.text("Invalid loop").color(NamedTextColor.RED);
|
||||
|
||||
Loop loop;
|
||||
switch (args[1]) {
|
||||
@@ -168,7 +168,7 @@ public class MusicCommand extends Command {
|
||||
context.sendOutput(Component.text("Now looping every song").color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor)));
|
||||
}
|
||||
default -> {
|
||||
return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
return Component.text("Invalid action").color(NamedTextColor.RED);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ public class TPSBarCommand extends Command {
|
||||
.color(ColorUtilities.getColorByString(bot.config.colorPalette.defaultColor));
|
||||
}
|
||||
default -> {
|
||||
return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||
return Component.text("Invalid action").color(NamedTextColor.RED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user