updated plist

This commit is contained in:
Fangoboyo 2022-06-20 17:49:07 -07:00
parent 5b54fe4355
commit 021a993448
2 changed files with 78 additions and 6 deletions

View File

@ -29,7 +29,7 @@ public class Main extends JavaPlugin {
ConsoleSender.sendMessage("--------------------------------------------");
ConsoleSender.sendMessage("--------------------------------------------");
ConsoleSender.sendMessage(
ChatColor.GREEN + "[EaglerPluginInstaller]" + ChatColor.AQUA + " EaglerPluginInstaller V1.1.2 is now Enabled! :D");
ChatColor.GREEN + "[EaglerPluginInstaller]" + ChatColor.AQUA + " EaglerPluginInstaller V1.1.3 is now Enabled! :D");
ConsoleSender.sendMessage("To use PluginInstaller, run the command \"/install <pluginname>\" (\"install <pluginname>\" in console) to install a plugin");
ConsoleSender.sendMessage("To get a list of installable plugins, use the command \"/plist\" or \"plist\" in console");
ConsoleSender.sendMessage("You can request to add a new plugin to the database by going to https://github.com/darverdevs/PluginInstallerRepo/tree/main");
@ -43,7 +43,7 @@ public class Main extends JavaPlugin {
ConsoleSender.sendMessage("--------------------------------------------");
ConsoleSender.sendMessage("--------------------------------------------");
ConsoleSender.sendMessage(
ChatColor.GREEN + "[EaglerPluginInstaller]" + ChatColor.AQUA + " PluginInstaller V1.1.2 is now Disabled! D:");
ChatColor.GREEN + "[EaglerPluginInstaller]" + ChatColor.AQUA + " PluginInstaller V1.1.3 is now Disabled! D:");
ConsoleSender.sendMessage("--------------------------------------------");
ConsoleSender.sendMessage("--------------------------------------------");
}

View File

@ -27,7 +27,7 @@ public class PluginList {
sender.sendMessage(i+". "+ AlphaPluginList[i-1] + "" + Utils.ListToString(spaces) + "" +SecondCollumn + ". " + AlphaPluginList[SecondCollumn-1]);
SecondCollumn++;
}
sender.sendMessage(" Page 1 of 4");
sender.sendMessage(" Page 1 of 6");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}
@ -63,7 +63,7 @@ public class PluginList {
SecondCollumn++;
}
sender.sendMessage(" Page 2 of 4");
sender.sendMessage(" Page 2 of 6");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}
@ -99,7 +99,7 @@ public class PluginList {
SecondCollumn++;
}
sender.sendMessage(" Page 3 of 4");
sender.sendMessage(" Page 3 of 6");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}
@ -135,7 +135,79 @@ public class PluginList {
SecondCollumn++;
}
sender.sendMessage(" Page 4 of 4");
sender.sendMessage(" Page 4 of 6");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}
public static void SendPG5ToSender(CommandSender sender) {
sender.sendMessage(ChatColor.GREEN + "Here is a list of available plugins in the database:");
// List -------------------------------------------------------------
int SecondCollumn = 64;
for (int i = 57; i < 64; 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<String> 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 5 of 6");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}
public static void SendPG6ToSender(CommandSender sender) {
sender.sendMessage(ChatColor.GREEN + "Here is a list of available plugins in the database:");
// List -------------------------------------------------------------
int SecondCollumn = 78;
for (int i = 71; i < 78; 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<String> 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 6 of 6");
sender.sendMessage("Note: You do not need to have proper");
sender.sendMessage("capitalization when using the install command");
}