bug fixes

This commit is contained in:
Fangoboyo 2022-06-16 18:09:58 -07:00
parent 819cf990e5
commit 20caab7e2e
5 changed files with 7 additions and 8 deletions

View File

@ -23,7 +23,7 @@ public class PluginList {
sender.sendMessage(i+". "+ AlphaPluginList[i-1] + "" + Utils.ListToString(spaces) + "" +SecondCollumn + ". " + AlphaPluginList[SecondCollumn-1]);
SecondCollumn++;
}
sender.sendMessage(" Page 1 of 12");
sender.sendMessage(" Page 1 of 3");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}
@ -59,7 +59,7 @@ public class PluginList {
SecondCollumn++;
}
sender.sendMessage(" Page 2 of 12");
sender.sendMessage(" Page 2 of 3");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}
@ -95,7 +95,7 @@ public class PluginList {
SecondCollumn++;
}
sender.sendMessage(" Page 3 of 12");
sender.sendMessage(" Page 3 of 3");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}

View File

@ -10,12 +10,11 @@ public class plistCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (cmd.getName().equalsIgnoreCase("plist") && sender.isOp() || sender instanceof ConsoleCommandSender) {
if (args.length >= 1) {
try {
System.out.println(args[0]);
} catch (ArrayIndexOutOfBoundsException e) {
System.out.println("error");
if (args.length == 0) {
PluginList.SendPG1ToSender(sender);
return true;
}
if (args.length >= 1) {
int listPage = 0;
boolean PageArgIsInt = false;
try {