mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
Added 'not enough args' for '/plan register'
Previously a no permission message was displayed.
This commit is contained in:
parent
10411c0626
commit
4ded1832b9
@ -101,6 +101,10 @@ public class RegisterCommand extends CommandNode {
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.length < 1) {
|
||||
throw new IllegalArgumentException(locale.getString(CommandLang.FAIL_REQ_ARGS, 1, Arrays.toString(getArguments())));
|
||||
}
|
||||
|
||||
if (CommandUtils.isPlayer(sender)) {
|
||||
playerRegister(args, sender);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user