mirror of
https://github.com/darverdevs/PluginInstaller.git
synced 2024-11-21 17:06:03 -08:00
untestested rebuild
This commit is contained in:
parent
4549410c8f
commit
0fafd12eb1
|
@ -3,6 +3,7 @@
|
|||
<output-path>$PROJECT_DIR$/out/artifacts/EaglerPluginInstaller_jar</output-path>
|
||||
<root id="archive" name="EaglerPluginInstaller.jar">
|
||||
<element id="module-output" name="EaglerPluginInstaller" />
|
||||
<element id="library" level="project" name="Maven: com.googlecode.json-simple:json-simple:1.1" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
Binary file not shown.
5
pom.xml
5
pom.xml
|
@ -33,6 +33,11 @@
|
|||
<artifactId>craftbukkit</artifactId>
|
||||
<version>1.5.2-R1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.googlecode.json-simple</groupId>
|
||||
<artifactId>json-simple</artifactId>
|
||||
<version>1.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
|
|
@ -4,8 +4,9 @@ import org.bukkit.ChatColor;
|
|||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public class PluginList {
|
||||
private static String[] AlphaPluginList = new String[]{"AntiSwear", "BitchFilter", "CoreProtect", "CrackShot", "DupePatch", "DynMap", "Essentials",
|
||||
"EssenttialsAntiBuild", "EssentialsChat", "EssentialsProtect", "EssentialsSpawn", "Factions", "MCore", "MyWarp",};
|
||||
private static String[] AlphaPluginList = new String[]{"AntiSwear", "AyunCord", "BitchFilter", "CoreProtect", "CrackShot", "CraftBook", "DupePatch", "DynMap", "Essentials",
|
||||
"EssenttialsAntiBuild", "EssentialsChat", "EssentialsProtect", "EssentialsSpawn", "Factions", "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;
|
||||
|
@ -48,5 +49,36 @@ public class PluginList {
|
|||
sender.sendMessage("Note: You do not need to have proper");
|
||||
sender.sendMessage("capitalization when using the install command");
|
||||
}
|
||||
|
||||
public static void SendPG3ToSender(CommandSender sender) {
|
||||
sender.sendMessage(ChatColor.GREEN + "Here is a list of available plugins in the database:");
|
||||
|
||||
// List -------------------------------------------------------------
|
||||
int SecondCollumn = 36;
|
||||
for (int i = 29; i < 36; i++) {
|
||||
String Col31;
|
||||
String Col32;
|
||||
|
||||
// Null checkers for elements in the Array
|
||||
if (AlphaPluginList[i-1] != null) {
|
||||
Col31 = AlphaPluginList[i-1];
|
||||
} else {
|
||||
Col31 = "N/A";
|
||||
}
|
||||
if (AlphaPluginList[SecondCollumn-1] != null) {
|
||||
Col32 = AlphaPluginList[SecondCollumn-1];
|
||||
} else {
|
||||
Col32 = "N/A";
|
||||
}
|
||||
// _________________________________________
|
||||
|
||||
sender.sendMessage(i+". "+ Col31 + "" + SecondCollumn + ". " + Col32);
|
||||
SecondCollumn++;
|
||||
}
|
||||
|
||||
sender.sendMessage(" Page 3 of 12");
|
||||
sender.sendMessage("Note: You do not need to have proper");
|
||||
sender.sendMessage("capitalization when using the install command");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,8 +12,6 @@ public class plistCommand implements CommandExecutor {
|
|||
if (cmd.getName().equalsIgnoreCase("plist") && sender.isOp() || sender instanceof ConsoleCommandSender) {
|
||||
if (args.length >= 1) {
|
||||
if (args[0] == null) {
|
||||
sender.sendMessage(ChatColor.GREEN + "Here is a list of available plugins in the database:");
|
||||
// TODO: Finish this list
|
||||
PluginList.SendPG1ToSender(sender);
|
||||
return true;
|
||||
}
|
||||
|
@ -25,11 +23,21 @@ public class plistCommand implements CommandExecutor {
|
|||
} catch (NumberFormatException n) {
|
||||
sender.sendMessage(ChatColor.RED + "That is not a valid page number!");
|
||||
PageArgIsInt = false;
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (PageArgIsInt) {
|
||||
|
||||
int PageArg = Integer.parseInt(args[0]);
|
||||
switch (PageArg) {
|
||||
case 1:
|
||||
PluginList.SendPG1ToSender(sender);
|
||||
break;
|
||||
case 2:
|
||||
PluginList.SendPG2ToSender(sender);
|
||||
break;
|
||||
case 3:
|
||||
PluginList.SendPG3ToSender(sender);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
name: EaglerPluginInstaller
|
||||
version: 1.1.0
|
||||
version: 1.1.1
|
||||
main: tech.nully.PluginInstaller.Main
|
||||
prefix: [EaglerPluginInstaller]
|
||||
loadbefore: [EaglerPluginUpdater]
|
||||
authors: [BongoCat]
|
||||
description: A plugin that is capable of installing the latest compatible version of plugins with eaglercraft from an online repository
|
||||
description: A plugin that is capable of installing the latest compatible version of plugins with eaglercraft from an online repository weith the executing of a command.
|
||||
website: nully.tech
|
||||
commands:
|
||||
install:
|
||||
|
|
Binary file not shown.
Binary file not shown.
BIN
target/classes/tech/nully/PluginInstaller/PluginList.class
Normal file
BIN
target/classes/tech/nully/PluginInstaller/PluginList.class
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user