Skip to content

Commit

Permalink
Add default reply in commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jie65535 committed Jan 13, 2023
1 parent 659e5e1 commit 7c3f485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public void execute(Player sender, Player targetPlayer, List<String> args) {
set.add(targetPlayer.getUid());
OpenChatPlugin.getInstance().saveData();
CommandHandler.sendMessage(sender, "OK");
} else {
sendUsageMessage(sender);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void execute(Player sender, Player targetPlayer, List<String> args) {
plugin.loadConfig();
CommandHandler.sendMessage(sender, "OK");
}
default -> sendUsageMessage(sender);
}
}
}

0 comments on commit 7c3f485

Please sign in to comment.