geforkt von Mirrors/Paper
Add usage message to ReloadCommand
Used when the wrong arguments are supplied, missed when we added the permissions reload functionality.
Dieser Commit ist enthalten in:
Ursprung
122d3d9d43
Commit
b2b163b8ec
@ -62,6 +62,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ return true;
|
+ return true;
|
||||||
+ } else if ("confirm".equalsIgnoreCase(args[0])) {
|
+ } else if ("confirm".equalsIgnoreCase(args[0])) {
|
||||||
+ confirmed = true;
|
+ confirmed = true;
|
||||||
|
+ } else {
|
||||||
|
+ Command.broadcastCommandMessage(sender, ChatColor.RED + "Usage: " + usageMessage);
|
||||||
|
+ return true;
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ if (!confirmed) {
|
+ if (!confirmed) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren