diff --git a/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar b/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar index 2de71be..cbeaf53 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/Commands/plistCommand.java b/src/main/java/tech/nully/PluginInstaller/Commands/plistCommand.java index abd373e..0360491 100644 --- a/src/main/java/tech/nully/PluginInstaller/Commands/plistCommand.java +++ b/src/main/java/tech/nully/PluginInstaller/Commands/plistCommand.java @@ -38,6 +38,9 @@ public class plistCommand implements CommandExecutor { case 3: PluginList.SendPG3ToSender(sender); return true; + case 4: + PluginList.SendPG4ToSender(sender); + return true; } } } diff --git a/src/main/java/tech/nully/PluginInstaller/PluginList.java b/src/main/java/tech/nully/PluginInstaller/PluginList.java index 4605471..f635a87 100644 --- a/src/main/java/tech/nully/PluginInstaller/PluginList.java +++ b/src/main/java/tech/nully/PluginInstaller/PluginList.java @@ -7,9 +7,11 @@ import java.util.ArrayList; import java.util.List; public class PluginList { - private static String[] AlphaPluginList = new String[]{"AntiSwear", "AuthMe", "AyunCord", "BitchFilter", "Citizens", "ClearLag", "CommandNPC", "CoreProtect", "CrackShot", "CraftBook", "DupePatch", "DynMap", "Essentials", - "EssenttialsAntiBuild", "EssentialsChat", "EssentialsProtect", "EssentialsSpawn", "Factions", "MCore", "Multiverse", "MyWarp", "PermissionSex", "ProtocolLib", - "Vault", "WorldEdit", "WorldGuard"}; + private static String[] AlphaPluginList = new String[]{"AdminFun", "AntiSwear", "AuthMe", "AyunCord", "BattleArena", "BitchFilter", "BloodMoon", + "ChestMaster", "Citizens", "ClearLag", "CommandNPC", "ComZombies", "CoreProtect", "CrackShot", "CraftBook", "DupePatch", "DynMap", "Essentials", + "EssenttialsAntiBuild", "EssentialsChat", "EssentialsProtect", "EssentialsSpawn", "Factions", "FakePlayersOnline", "LortinsRPGMobs", "MagicSpellBook", + "MagicSpells", "MCore", "Multiverse", "MyWarp", + "PermissionSex", "ProtocolLib", "Vault", "WorldEdit", "WorldGuard"}; public static void SendPG1ToSender(CommandSender sender) { sender.sendMessage(ChatColor.GREEN + "Here is a list of available plugins in the database:"); int SecondCollumn = 8; @@ -23,7 +25,7 @@ public class PluginList { sender.sendMessage(i+". "+ AlphaPluginList[i-1] + "" + Utils.ListToString(spaces) + "" +SecondCollumn + ". " + AlphaPluginList[SecondCollumn-1]); SecondCollumn++; } - sender.sendMessage(" Page 1 of 3"); + sender.sendMessage(" Page 1 of 4"); sender.sendMessage("Note: You do not need to have proper"); sender.sendMessage("capitalization when using the install command"); } @@ -59,7 +61,7 @@ public class PluginList { SecondCollumn++; } - sender.sendMessage(" Page 2 of 3"); + sender.sendMessage(" Page 2 of 4"); sender.sendMessage("Note: You do not need to have proper"); sender.sendMessage("capitalization when using the install command"); } @@ -95,7 +97,43 @@ public class PluginList { SecondCollumn++; } - sender.sendMessage(" Page 3 of 3"); + sender.sendMessage(" Page 3 of 4"); + sender.sendMessage("Note: You do not need to have proper"); + sender.sendMessage("capitalization when using the install command"); + } + + public static void SendPG4ToSender(CommandSender sender) { + sender.sendMessage(ChatColor.GREEN + "Here is a list of available plugins in the database:"); + + // List ------------------------------------------------------------- + int SecondCollumn = 50; + for (int i = 43; i < 50; i++) { + String Col41; + String Col42; + + // Null checkers for elements in the Array + try { + Col41 = AlphaPluginList[i-1]; + } catch (ArrayIndexOutOfBoundsException e) { + Col41 = "N/A"; + } + try { + Col42 = AlphaPluginList[SecondCollumn-1]; + } catch (ArrayIndexOutOfBoundsException e) { + Col42 = "N/A"; + } + // _________________________________________ + + int Spaces = 21-Col41.length(); + List spaces = new ArrayList<>(); + for (int forInt = 0; forInt < Spaces; forInt++) { + spaces.add(" "); + } + sender.sendMessage(i+". "+ Col41 + "" + Utils.ListToString(spaces) + "" + SecondCollumn + ". " + Col42); + SecondCollumn++; + } + + sender.sendMessage(" Page 4 of 4"); sender.sendMessage("Note: You do not need to have proper"); sender.sendMessage("capitalization when using the install command"); } diff --git a/target/classes/tech/nully/PluginInstaller/InstallCommand.class b/target/classes/tech/nully/PluginInstaller/Commands/InstallCommand.class similarity index 57% rename from target/classes/tech/nully/PluginInstaller/InstallCommand.class rename to target/classes/tech/nully/PluginInstaller/Commands/InstallCommand.class index 2a3ab4f..38b0979 100644 Binary files a/target/classes/tech/nully/PluginInstaller/InstallCommand.class and b/target/classes/tech/nully/PluginInstaller/Commands/InstallCommand.class differ diff --git a/target/classes/tech/nully/PluginInstaller/Commands/pinfoCommand.class b/target/classes/tech/nully/PluginInstaller/Commands/pinfoCommand.class new file mode 100644 index 0000000..3272f84 Binary files /dev/null and b/target/classes/tech/nully/PluginInstaller/Commands/pinfoCommand.class differ diff --git a/target/classes/tech/nully/PluginInstaller/Commands/plistCommand.class b/target/classes/tech/nully/PluginInstaller/Commands/plistCommand.class new file mode 100644 index 0000000..f46a21d Binary files /dev/null and b/target/classes/tech/nully/PluginInstaller/Commands/plistCommand.class differ diff --git a/target/classes/tech/nully/PluginInstaller/Main.class b/target/classes/tech/nully/PluginInstaller/Main.class index 3621f18..ee579b4 100644 Binary files a/target/classes/tech/nully/PluginInstaller/Main.class and b/target/classes/tech/nully/PluginInstaller/Main.class differ diff --git a/target/classes/tech/nully/PluginInstaller/PluginList.class b/target/classes/tech/nully/PluginInstaller/PluginList.class index c445cdc..8f5b420 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 deleted file mode 100644 index 418c2c2..0000000 Binary files a/target/classes/tech/nully/PluginInstaller/plistCommand.class and /dev/null differ