mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
temp fix
This commit is contained in:
parent
cb10f39753
commit
766dc0f703
@ -84,14 +84,23 @@ public class MainCommand implements CommandExecutor, TabCompleter {
|
|||||||
int page = 0;
|
int page = 0;
|
||||||
|
|
||||||
boolean digit = true;
|
boolean digit = true;
|
||||||
for (final char c : args[2].toCharArray()) {
|
|
||||||
|
String arg2;
|
||||||
|
if (args.length>2) {
|
||||||
|
arg2 = args[2];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
arg2 = "1";
|
||||||
|
}
|
||||||
|
|
||||||
|
for (final char c : arg2.toCharArray()) {
|
||||||
if (!Character.isDigit(c)) {
|
if (!Character.isDigit(c)) {
|
||||||
digit = false;
|
digit = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (digit) {
|
if (digit) {
|
||||||
page = Integer.parseInt(args[2]);
|
page = Integer.parseInt(arg2);
|
||||||
if (--page < 0) {
|
if (--page < 0) {
|
||||||
page = 0;
|
page = 0;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: PlotSquared
|
name: PlotSquared
|
||||||
main: com.intellectualcrafters.plot.PlotMain
|
main: com.intellectualcrafters.plot.PlotMain
|
||||||
version: 2.1.2
|
version: 2.2.0
|
||||||
load: STARTUP
|
load: STARTUP
|
||||||
description: >
|
description: >
|
||||||
Easy, yet powerful Plot World generation and management.
|
Easy, yet powerful Plot World generation and management.
|
||||||
|
Loading…
Reference in New Issue
Block a user