among
This commit is contained in:
parent
28ed76e0ac
commit
04eddcb12c
1 changed files with 2 additions and 0 deletions
|
@ -157,6 +157,8 @@ public class MusicCommand implements Command {
|
||||||
public Component loop (CommandContext context, String[] args) {
|
public Component loop (CommandContext context, String[] args) {
|
||||||
final Bot bot = context.bot();
|
final Bot bot = context.bot();
|
||||||
|
|
||||||
|
if (args[1] == null) return Component.text("Invalid argument").color(NamedTextColor.RED);
|
||||||
|
|
||||||
Loop loop;
|
Loop loop;
|
||||||
switch (args[1]) {
|
switch (args[1]) {
|
||||||
case "off" -> {
|
case "off" -> {
|
||||||
|
|
Loading…
Reference in a new issue