Fixed specifying amount breaking the level with /talgive
This commit is contained in:
@@ -57,7 +57,7 @@ public class CommandTalgive extends AbstractCommand {
|
|||||||
|
|
||||||
if (args.size() > 3) {
|
if (args.size() > 3) {
|
||||||
try {
|
try {
|
||||||
level = Integer.parseInt(args.get(3));
|
amount = Integer.parseInt(args.get(3));
|
||||||
} catch (NumberFormatException ignored) {
|
} catch (NumberFormatException ignored) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user