diff --git a/CommandGUI V2/pom.xml b/CommandGUI V2/pom.xml index 6cf0552..8c779a0 100644 --- a/CommandGUI V2/pom.xml +++ b/CommandGUI V2/pom.xml @@ -6,7 +6,7 @@ net.t2code CommandGUI_V2 - 2.8.18 + 2.8.19 jar T2C-CommandGUI diff --git a/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/config/functions/CreateFunctions.java b/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/config/functions/CreateFunctions.java index 265c857..11e0b9f 100644 --- a/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/config/functions/CreateFunctions.java +++ b/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/config/functions/CreateFunctions.java @@ -5,6 +5,7 @@ import net.t2code.commandguiv2.Spigot.enums.FunctionItemEnum; import net.t2code.commandguiv2.Spigot.enums.FunctionVoteEnum; import net.t2code.commandguiv2.Util; import net.t2code.t2codelib.SPIGOT.api.messages.T2Csend; +import net.t2code.t2codelib.SPIGOT.system.T2CodeLibMain; import org.bukkit.configuration.file.YamlConfiguration; import java.io.File; @@ -18,20 +19,27 @@ public class CreateFunctions { "&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,false, "", true, true, + "", false, "", false, false, "", true, true, 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"); + + List dclist; + if (T2CodeLibMain.getMmIsLoad()) { + dclist = Arrays.asList("[T2Code] http://dc.t2code.net'>You can find more information on Discord"); + } else dclist = Arrays.asList("&6You can find more information on Discord: &ehttp://dc.t2code.net"); + + createFunction("SupportDiscord", false, 1, true, true, "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzg3M2MxMmJmZmI1MjUxYTBiODhkNWFlNzVjNzI0N2NiMzlhNzVmZjFhODFjYmU0YzhhMzliMzExZGRlZGEifX19", false, "", "", "&3Support Discord", Arrays.asList("&8-----------------", "&bIf you need help setting up the plugin,", "&bfeel free to contact me on the Suport Discord.", "&8-----------------", "&eIf you find any errors or bugs,", "&eplease contact me so I can fix them.", "&8-----------------", "&5Discord: ยง7http://dc.t2code.net"), 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,false, "", - false, true, Arrays.asList("&6You can find more information on Discord: &ehttp://dc.t2code.net"), false, "", + false, Arrays.asList(), false, "", false, "", false, false, "", + false, true, dclist, false, "", "", "String", "", false, 0, 0.0, Arrays.asList(), "", false, 0, 0.0, Arrays.asList(), false, "", false, FunctionVoteEnum.ADD, 0, false, FunctionItemEnum.REMOVE, "DIRT;5"); @@ -40,7 +48,7 @@ public class CreateFunctions { public static void createFunction(String fileName, Boolean empty, Integer itemAmount, Boolean playerHeadEnable, Boolean base64Enable, String base64Value, Boolean playerWhoHasOpenedTheGUI, String playerName, String itemMaterial, String name, List lore, Boolean noPermMessageEnable, String customNoPermMessage, Boolean noPermLoreEnable, List noPermLore, Boolean customSoundEnable, Boolean customSoundNoSound, String customSoundSound, Boolean costEnable, String ecoModule, String ecoItem, Integer ecoVotePoints, Double ecoPrice, Boolean commandEnable, Boolean commandBungeeCommand, - Boolean commandAsConsole, List command, Boolean serverChange, String serverChangeServer, Boolean openGUIEnable, String openGUI,Boolean closeGUI, + Boolean commandAsConsole, List command, Boolean serverChange, String serverChangeServer, Boolean openGUIEnable, String openGUI, Boolean closeGUI, Boolean togglePermission, String togglePermissionPerm, Boolean toggleUseItem, Boolean messageEnable, List message, Boolean setConfigEnable, String configFilePath, String configOptionPath, String configOptionPremat, String configStringValueLeft, Boolean configBooleanValueLeft, Integer configIntegerValueLeft, Double configDoubleValueLeft, List configListValueLeft, String configStringValueRight,