diff --git a/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar b/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar index 2e477b3..52ca3a8 100644 Binary files a/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar and b/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar differ diff --git a/src/main/java/tech/nully/PluginInstaller/PluginList.java b/src/main/java/tech/nully/PluginInstaller/PluginList.java index 7acc999..b951c20 100644 --- a/src/main/java/tech/nully/PluginInstaller/PluginList.java +++ b/src/main/java/tech/nully/PluginInstaller/PluginList.java @@ -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"); } diff --git a/src/main/java/tech/nully/PluginInstaller/plistCommand.java b/src/main/java/tech/nully/PluginInstaller/plistCommand.java index 855627f..2c1fdbf 100644 --- a/src/main/java/tech/nully/PluginInstaller/plistCommand.java +++ b/src/main/java/tech/nully/PluginInstaller/plistCommand.java @@ -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 == 0) { + PluginList.SendPG1ToSender(sender); + return true; + } if (args.length >= 1) { - try { - System.out.println(args[0]); - } catch (ArrayIndexOutOfBoundsException e) { - System.out.println("error"); - } int listPage = 0; boolean PageArgIsInt = false; try { diff --git a/target/classes/tech/nully/PluginInstaller/PluginList.class b/target/classes/tech/nully/PluginInstaller/PluginList.class index e042da0..6849ad0 100644 Binary files a/target/classes/tech/nully/PluginInstaller/PluginList.class and b/target/classes/tech/nully/PluginInstaller/PluginList.class differ diff --git a/target/classes/tech/nully/PluginInstaller/plistCommand.class b/target/classes/tech/nully/PluginInstaller/plistCommand.class index a7e1355..44557ad 100644 Binary files a/target/classes/tech/nully/PluginInstaller/plistCommand.class and b/target/classes/tech/nully/PluginInstaller/plistCommand.class differ