Compare commits
No commits in common. "48c06696ef04e7346db91817b65bf694cf91ac9e" and "7f2b346f7b90d307af7943f478790d23368a9222" have entirely different histories.
48c06696ef
...
7f2b346f7b
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>CommandGUI_V2</artifactId>
|
<artifactId>CommandGUI_V2</artifactId>
|
||||||
<version>2.8.1</version>
|
<version>2.8.0</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>CommandGUI</name>
|
<name>CommandGUI</name>
|
||||||
@ -85,7 +85,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
<artifactId>T2CodeLib</artifactId>
|
<artifactId>T2CodeLib</artifactId>
|
||||||
<version>12.1</version>
|
<version>12.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.t2code</groupId>
|
<groupId>net.t2code</groupId>
|
||||||
|
@ -65,6 +65,7 @@ public final class Main extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
Load.onLoad(Util.getPrefix(), autor, version, Util.getSpigot(), Util.getSpigotID(), Util.getDiscord(), Util.getBstatsID());
|
Load.onLoad(Util.getPrefix(), autor, version, Util.getSpigot(), Util.getSpigotID(), Util.getDiscord(), Util.getBstatsID());
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void addonLoad() {
|
public static void addonLoad() {
|
||||||
|
@ -58,12 +58,12 @@ public class Commands {
|
|||||||
send.console(Util.getPrefix() + "§8-------------------------------");
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
||||||
send.console(Util.getPrefix() + " §6Plugin reload...");
|
send.console(Util.getPrefix() + " §6Plugin reload...");
|
||||||
send.console(Util.getPrefix() + "§8-------------------------------");
|
send.console(Util.getPrefix() + "§8-------------------------------");
|
||||||
SelectConfig.onSelect();
|
|
||||||
Main.plugin.reloadConfig();
|
|
||||||
|
|
||||||
CmdExecuter_GUI.arg1.clear();
|
CmdExecuter_GUI.arg1.clear();
|
||||||
CmdExecuter_GUI.arg1.put(SelectConfig.adminSubCommand, "commandgui.admin;commandgui.giveitem.other;commandgui.command.info");
|
CmdExecuter_GUI.arg1.put("admin", "commandgui.admin;commandgui.giveitem.other;commandgui.command.info");
|
||||||
|
|
||||||
|
SelectConfig.onSelect();
|
||||||
|
Main.plugin.reloadConfig();
|
||||||
if (!Objects.equals(SelectDatabase.getStorage().toString(), SelectConfig.storage)) {
|
if (!Objects.equals(SelectDatabase.getStorage().toString(), SelectConfig.storage)) {
|
||||||
if (sender instanceof Player) send.sender(sender, "You have changed the storage medium! To apply this change, you must restart the server!");
|
if (sender instanceof Player) send.sender(sender, "You have changed the storage medium! To apply this change, you must restart the server!");
|
||||||
send.warning(Main.plugin, "You have changed the storage medium! To apply this change, you must restart the server!");
|
send.warning(Main.plugin, "You have changed the storage medium! To apply this change, you must restart the server!");
|
||||||
|
@ -130,7 +130,7 @@ public class SelectConfig {
|
|||||||
|
|
||||||
Debug = yamlConfiguration.getBoolean("Plugin.Debug");
|
Debug = yamlConfiguration.getBoolean("Plugin.Debug");
|
||||||
HelpAlias = yamlConfiguration.getBoolean("Plugin.HelpAlias");
|
HelpAlias = yamlConfiguration.getBoolean("Plugin.HelpAlias");
|
||||||
adminSubCommand = yamlConfiguration.getString("Plugin.AdminSubCommand").toLowerCase();
|
adminSubCommand = yamlConfiguration.getString("Plugin.AdminSubCommand");
|
||||||
language = yamlConfiguration.getString("Plugin.language");
|
language = yamlConfiguration.getString("Plugin.language");
|
||||||
Currency = yamlConfiguration.getString("Plugin.Currency");
|
Currency = yamlConfiguration.getString("Plugin.Currency");
|
||||||
DefaultGUI = yamlConfiguration.getString("Plugin.DefaultGUI");
|
DefaultGUI = yamlConfiguration.getString("Plugin.DefaultGUI");
|
||||||
|
@ -171,26 +171,21 @@ public class Obj_Select {
|
|||||||
|
|
||||||
Boolean functionVotePoints = yamlConfiguration.getBoolean("Slots.Function.FunctionVotePoints.Enable");
|
Boolean functionVotePoints = yamlConfiguration.getBoolean("Slots.Function.FunctionVotePoints.Enable");
|
||||||
FunctionVoteEnum functionVotePointsMode = null;
|
FunctionVoteEnum functionVotePointsMode = null;
|
||||||
if (yamlConfiguration.get("Slots.Function.FunctionVotePoints.Mode") != null) {
|
|
||||||
try {
|
try {
|
||||||
functionVotePointsMode = FunctionVoteEnum.valueOf(yamlConfiguration.getString("Slots.Function.FunctionVotePoints.Mode").toUpperCase());
|
functionVotePointsMode = FunctionVoteEnum.valueOf(yamlConfiguration.getString("Slots.Function.FunctionVotePoints.Mode").toUpperCase());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
send.error(Main.plugin, "The VotePoints Mode " + yamlConfiguration.getString("Slots.Function.FunctionVotePoints.Mode").toUpperCase() + " in the function file "
|
send.error(Main.plugin, "The VotePoints Mode " + yamlConfiguration.getString("Slots.Function.FunctionVotePoints.Mode").toUpperCase() + " in the function file "
|
||||||
+ config.getName() + " does not exist. Please use one of the supported modules. (ADD, REMOVE)");
|
+ config.getName() + " does not exist. Please use one of the supported modules. (ADD, REMOVE)");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Integer functionVotePointsAmount = yamlConfiguration.getInt("Slots.Function.FunctionVotePoints.Amount");
|
Integer functionVotePointsAmount = yamlConfiguration.getInt("Slots.Function.FunctionVotePoints.Amount");
|
||||||
Boolean functionItem = yamlConfiguration.getBoolean("Slots.Function.FunctionItem.Enable");
|
Boolean functionItem = yamlConfiguration.getBoolean("Slots.Function.FunctionItem.Enable");
|
||||||
FunctionItemEnum functionItemMode = null;
|
FunctionItemEnum functionItemMode = null;
|
||||||
if (yamlConfiguration.get("Slots.Function.FunctionItem.Mode") != null) {
|
|
||||||
try {
|
try {
|
||||||
functionItemMode = FunctionItemEnum.valueOf(yamlConfiguration.getString("Slots.Function.FunctionItem.Mode").toUpperCase());
|
functionItemMode = FunctionItemEnum.valueOf(yamlConfiguration.getString("Slots.Function.FunctionItem.Mode").toUpperCase());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
send.error(Main.plugin, "The Item Mode " + yamlConfiguration.getString("Slots.Function.FunctionItem.Mode").toUpperCase() + " in the function file "
|
send.error(Main.plugin, "The Item Mode " + yamlConfiguration.getString("Slots.Function.FunctionItem.Mode").toUpperCase() + " in the function file "
|
||||||
+ config.getName() + " does not exist. Please use one of the supported modules. (ADD, REMOVE)");
|
+ config.getName() + " does not exist. Please use one of the supported modules. (ADD, REMOVE)");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
String functionItemItem = yamlConfiguration.getString("Slots.Function.FunctionItem.Item");
|
String functionItemItem = yamlConfiguration.getString("Slots.Function.FunctionItem.Item");
|
||||||
|
|
||||||
Function function = new Function(key, empty, itemAmount, playerHead_Enable, base64_Enable, base64Value, playerWhoHasOpenedTheGUI, playerName, item, name, lore,
|
Function function = new Function(key, empty, itemAmount, playerHead_Enable, base64_Enable, base64Value, playerWhoHasOpenedTheGUI, playerName, item, name, lore,
|
||||||
|
@ -96,7 +96,11 @@ public class Load {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
CmdExecuter_GUI.arg1.put("admin", "commandgui.admin;commandgui.giveitem.other;commandgui.command.info");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
SelectMessages.onSelect(prefix);
|
SelectMessages.onSelect(prefix);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -107,11 +111,6 @@ public class Load {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
CmdExecuter_GUI.arg1.put(SelectConfig.adminSubCommand, "commandgui.admin;commandgui.giveitem.other;commandgui.command.info");
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
send.console(prefix + " §8-------------------------------");
|
send.console(prefix + " §8-------------------------------");
|
||||||
loadStorage(prefix);
|
loadStorage(prefix);
|
||||||
|
@ -4,8 +4,13 @@ main: de.jatitv.commandguiv2.Spigot.Main
|
|||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
prefix: CommandGUI
|
prefix: CommandGUI
|
||||||
authors: [ JaTiTV ]
|
authors: [ JaTiTV ]
|
||||||
depend:
|
|
||||||
|
softdepend:
|
||||||
- T2CodeLib
|
- T2CodeLib
|
||||||
|
- Vault
|
||||||
|
- PlaceholderAPI
|
||||||
|
- PlotSquaredGUI
|
||||||
|
- PlugManGUI
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
commandgui:
|
commandgui:
|
||||||
|
Loading…
Reference in New Issue
Block a user