quick fix
This commit is contained in:
parent
78a0bd5f7e
commit
621f626707
@ -59,8 +59,8 @@ public final class Main extends JavaPlugin {
|
||||
if (PluginCheck.pluginCheck("CommandGUI")) {
|
||||
send.error(this, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
||||
send.error(this, "");
|
||||
send.error(this, "An older version of the plugin T2C-FunctionGUI was found!");
|
||||
send.error(this, "This plugin is now called T2C-FunctionGUI and no longer CommandGUI!");
|
||||
send.error(this, "An older version of the plugin T2C-CommandGUI was found!");
|
||||
send.error(this, "This plugin is now called T2C-CommandGUI and no longer CommandGUI!");
|
||||
send.error(this, "Please remove the older version (CommandGUI)!");
|
||||
send.error(this, this.getName() + " version: " + this.getDescription().getVersion() + " could not be loaded!");
|
||||
send.error(this, "");
|
||||
|
@ -198,8 +198,8 @@ public class ConfigConverterUnderV5 {
|
||||
set("Slots." + key + ".Enable", slotEnable, yamlConfiguration);
|
||||
set("Slots." + key + ".Function", function, yamlConfiguration);
|
||||
set("Slots." + key + ".Permission.Required", permRequired, yamlConfiguration);
|
||||
set("Slots." + key + ".Permission.See", "t2code.functiongui.gui.[function].slot.[slot].see", yamlConfiguration);
|
||||
set("Slots." + key + ".Permission.Use", "t2code.functiongui.gui.[function].slot.[slot].use", yamlConfiguration);
|
||||
set("Slots." + key + ".Permission.See", "commandgui.gui.[function].slot.[slot].see", yamlConfiguration);
|
||||
set("Slots." + key + ".Permission.Use", "commandgui.gui.[function].slot.[slot].use", yamlConfiguration);
|
||||
}
|
||||
|
||||
private static void set(String path, String value, YamlConfiguration config) {
|
||||
|
@ -15,11 +15,11 @@ import java.util.List;
|
||||
public class CreateFunctions {
|
||||
public static void create() {
|
||||
createFunction("UseItem", false, 1, false, false, "", false, "", "",
|
||||
"&6Toggle UseItem", Arrays.asList("&bYou currently have the UseItem set to: %t2c-functiongui_useitem%"), true, "", true,
|
||||
"&6Toggle UseItem", Arrays.asList("&bYou currently have the UseItem set to: %commandgui_useitem%"), true, "", true,
|
||||
Arrays.asList("&8-----------------", "&4No Permission for this Function", "&8-----------------"), false, false,
|
||||
"", false, "VAULT", "DIRT;5", 0, 0.0, false, false, false, Arrays.asList(), false,
|
||||
"", false, "", false, "", true, true,
|
||||
Arrays.asList("&bYour UseItem was set to: %t2c-functiongui_useitem%&b."), false, "", "", "String",
|
||||
Arrays.asList("&bYour UseItem was set to: %commandgui_useitem%&b."), false, "", "", "String",
|
||||
"", false, 0, 0.0, Arrays.asList(), "", false,
|
||||
0, 0.0, Arrays.asList(), false, "",
|
||||
false, FunctionVoteEnum.ADD, 0, false, FunctionItemEnum.REMOVE, "DIRT;5");
|
||||
|
@ -47,13 +47,13 @@ public class Permissions {
|
||||
Register.permissionDescription(bypass, "Bypass to open disabled GUIs", plugin);
|
||||
|
||||
Register.permission(info, notOp, plugin);
|
||||
Register.permissionDescription(info, "Permission to view T2C-FunctionGUI info", plugin);
|
||||
Register.permissionDescription(info, "Permission to view T2C-CommandGUI info", plugin);
|
||||
|
||||
Register.permission(player, op, command, true, plugin);
|
||||
Register.permission(player, op, getGuiItemAtLogin, true, plugin);
|
||||
Register.permission(player, op, useitem, true, plugin);
|
||||
Register.permission(player, op, useitemToggle, true, plugin);
|
||||
Register.permissionDescription(player, "All permissions from T2C-FunctionGUI for Player", plugin);
|
||||
Register.permissionDescription(player, "All permissions from T2C-CommandGUI for Player", plugin);
|
||||
|
||||
Register.permission(admin, op, command, true, plugin);
|
||||
Register.permission(admin, op, getGuiItemAtLogin, true, plugin);
|
||||
@ -63,7 +63,7 @@ public class Permissions {
|
||||
Register.permission(admin, op, updatemsg, true, plugin);
|
||||
Register.permission(admin, op, bypass, true, plugin);
|
||||
Register.permission(admin, op, info, true, plugin);
|
||||
Register.permissionDescription(admin, "All permissions from T2C-FunctionGUI", plugin);
|
||||
Register.permissionDescription(admin, "All permissions from T2C-CommandGUI", plugin);
|
||||
|
||||
|
||||
for (Gui gui : Main.guiHashMap.values()) {
|
||||
|
Loading…
Reference in New Issue
Block a user