Skip to content

Commit

Permalink
team command: allow option or color without other args
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 14, 2020
1 parent 0b5ed25 commit 4adef95
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -130,6 +130,7 @@ else if (arg.matchesPrefix("status")
}

if (!scriptEntry.hasObject("add") && !scriptEntry.hasObject("remove")
&& !scriptEntry.hasObject("option") && !scriptEntry.hasObject("color")
&& !scriptEntry.hasObject("prefix") && !scriptEntry.hasObject("suffix")) {
throw new InvalidArgumentsException("Must specify something to do with the team!");
}
Expand Down

0 comments on commit 4adef95

Please sign in to comment.