Fix IndexOutOfBoundsException with 'permission settemp' command (#403)

This commit is contained in:
Luck 2017-07-30 15:23:42 +01:00
parent ce2c943397
commit 4ecd899bac
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -57,7 +57,7 @@ import static me.lucko.luckperms.common.commands.abstraction.SubCommand.getPermi
public class PermissionSetTemp extends SharedSubCommand {
public PermissionSetTemp(LocaleManager locale) {
super(CommandSpec.PERMISSION_SETTEMP.spec(locale), "settemp", Permission.USER_PERM_SETTEMP, Permission.GROUP_PERM_SETTEMP, Predicates.inRange(0, 1));
super(CommandSpec.PERMISSION_SETTEMP.spec(locale), "settemp", Permission.USER_PERM_SETTEMP, Permission.GROUP_PERM_SETTEMP, Predicates.inRange(0, 2));
}
@Override