2021-12-21 04:57:29 +00:00
|
|
|
package de.jatitv.commandguiv2;
|
|
|
|
|
|
|
|
public class Util {
|
2.7.0 Snapshot 1
In this update some functions were rewritten, changed and added.
Also some minor bugs have been fixed.
The GUIs files have been split into GUI files and function files, this provides more clarity in the complete plugin structure and offers the possibility to access a function from multiple GUIs. Thus, for example, you can create a back button as a function and open it from 3 GUIs, the item, the function can also be in different places, because the slot is set in the GUI file.
In the GUI files is thus specified on which slot which function should be located.
In addition, the permission for See and for Use of the functions can now be set individually in the GUI Config.
In the functions also 2 new functions were added, with which players can switch permissions on and off and an option to switch the UseItem on and off.
Placeholders have been added.
This update includes a converter that builds the new structure from the old config structure. Your options should be taken over. For security reasons your old GUI files are saved under the path 'plugins/CommandGUI/OldConfig/GUIs/Version4'.
Bug fixes:
- Fixed a bug that prevented GUIs from opening.
- The OpenGUI option, the command '/cgui <guiname>' did not work. The GUI that was set as default GUI in UseItem was always opened. This was fixed
New features:
- Placeholders
- %commandgui_useitem% - Shows if you have activated or deactivated the UseItem (in color, customizable in config.yml)
- %commandgui_useitem_boolean% - Shows if you have enabled or disabled the UseItem
- %commandgui_useitem_slot% - shows on which slot you have set the UseItem
- ToggleUseItem as new option for slots
- TogglePermission as new option for slots
Changes:
- The config structure has been revised.
2022-04-19 05:08:33 +00:00
|
|
|
private static Integer configVersion = 5;
|
2022-01-13 02:28:06 +00:00
|
|
|
private static double requiredT2CodeLibVersion = 10.3;
|
2022-01-01 02:40:54 +00:00
|
|
|
private static String Prefix = "§8[§4C§9GUI§8]";
|
|
|
|
private static Integer SpigotID = 90671;
|
|
|
|
private static Integer BstatsID = 10840;
|
|
|
|
private static String Spigot = "https://www.spigotmc.org/resources/" + SpigotID;
|
|
|
|
private static String Discord = "http://dc.t2code.net";
|
|
|
|
|
|
|
|
public static double getRequiredT2CodeLibVersion() {
|
|
|
|
return requiredT2CodeLibVersion;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String getPrefix() {
|
|
|
|
return Prefix;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static Integer getSpigotID() {
|
|
|
|
return SpigotID;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static Integer getBstatsID() {
|
|
|
|
return BstatsID;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String getSpigot() {
|
|
|
|
return Spigot;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String getDiscord() {
|
|
|
|
return Discord;
|
|
|
|
}
|
2.7.0 Snapshot 1
In this update some functions were rewritten, changed and added.
Also some minor bugs have been fixed.
The GUIs files have been split into GUI files and function files, this provides more clarity in the complete plugin structure and offers the possibility to access a function from multiple GUIs. Thus, for example, you can create a back button as a function and open it from 3 GUIs, the item, the function can also be in different places, because the slot is set in the GUI file.
In the GUI files is thus specified on which slot which function should be located.
In addition, the permission for See and for Use of the functions can now be set individually in the GUI Config.
In the functions also 2 new functions were added, with which players can switch permissions on and off and an option to switch the UseItem on and off.
Placeholders have been added.
This update includes a converter that builds the new structure from the old config structure. Your options should be taken over. For security reasons your old GUI files are saved under the path 'plugins/CommandGUI/OldConfig/GUIs/Version4'.
Bug fixes:
- Fixed a bug that prevented GUIs from opening.
- The OpenGUI option, the command '/cgui <guiname>' did not work. The GUI that was set as default GUI in UseItem was always opened. This was fixed
New features:
- Placeholders
- %commandgui_useitem% - Shows if you have activated or deactivated the UseItem (in color, customizable in config.yml)
- %commandgui_useitem_boolean% - Shows if you have enabled or disabled the UseItem
- %commandgui_useitem_slot% - shows on which slot you have set the UseItem
- ToggleUseItem as new option for slots
- TogglePermission as new option for slots
Changes:
- The config structure has been revised.
2022-04-19 05:08:33 +00:00
|
|
|
|
|
|
|
public static Integer getConfigVersion() {
|
|
|
|
return configVersion;
|
|
|
|
}
|
2021-12-21 04:57:29 +00:00
|
|
|
}
|