mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-10-06 11:37:50 +02:00
Merge branch 'master' into spigot
This commit is contained in:
commit
e98d9901ff
@ -45,12 +45,12 @@ public class CommandWithSubCommands implements CommandTemplate {
|
||||
if(args.length > 1) {
|
||||
try {
|
||||
helpPage = Integer.parseInt(args[1]);
|
||||
if(helpPage < 0) {
|
||||
helpPage = 1;
|
||||
}
|
||||
else if(helpPage > pages) {
|
||||
if(helpPage > pages) {
|
||||
helpPage = pages;
|
||||
}
|
||||
if(helpPage <= 0) {
|
||||
helpPage = 1;
|
||||
}
|
||||
}
|
||||
catch(NumberFormatException e) {
|
||||
sender.sendMessage(Lang.translateInsertVariablesColor("command.help.invalidnum", args[1]));
|
||||
|
Loading…
Reference in New Issue
Block a user