Skip to content

Commit

Permalink
Fix checkupdate command not checking if the required arguments were p…
Browse files Browse the repository at this point in the history
…rovided
  • Loading branch information
ajgeiss0702 committed Jan 1, 2023
1 parent 7a9391f commit 7655252
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -30,6 +30,10 @@ public List<String> autoComplete(CommandSender sender, String[] args) {

@Override
public void execute(CommandSender sender, String[] args, String label) {
if(args.length < 2) {
sender.sendMessage(message("&cPlease provide a board and player to update\n&7Usage: /"+label+" checkupdate <board> <player>"));
return;
}
String board = args[0];
if(!plugin.getCache().boardExists(board)) {
sender.sendMessage(message("&cThe board '"+board+"' does not exist."));
Expand Down

0 comments on commit 7655252

Please sign in to comment.