mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-03 21:37:28 +01:00
Add usage message to ReloadCommand
Used when the wrong arguments are supplied, missed when we added the permissions reload functionality.
This commit is contained in:
parent
122d3d9d43
commit
b2b163b8ec
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ return true;
|
||||
+ } else if ("confirm".equalsIgnoreCase(args[0])) {
|
||||
+ confirmed = true;
|
||||
+ } else {
|
||||
+ Command.broadcastCommandMessage(sender, ChatColor.RED + "Usage: " + usageMessage);
|
||||
+ return true;
|
||||
+ }
|
||||
+ }
|
||||
+ if (!confirmed) {
|
||||
|
|
Loading…
Add table
Reference in a new issue