Allow for specifying amount to increase itemstack in /more (#3302)

Fixes #2342.
This commit is contained in:
Josh Roy 2020-07-06 14:55:07 -04:00 committed by GitHub
parent 76e511a774
commit 1a6ad2fdb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 10 deletions

View file

@ -105,4 +105,11 @@ public class NumberUtil {
}
return true;
}
public static boolean isPositiveInt(final String sInt) {
if (!isInt(sInt)) {
return false;
}
return Integer.parseInt(sInt) > 0;
}
}