diff --git a/build.gradle b/build.gradle index 34151b8..971cdf8 100644 --- a/build.gradle +++ b/build.gradle @@ -2,3 +2,8 @@ plugins { id 'com.gtnewhorizons.gtnhconvention' } + +minecraft{ + injectedTags.put("MCVERSION", version) + injectedTags.put("CONFIG_VERSION", "1.0.0") +} diff --git a/src/main/java/moe/yuyui/mcstreamerbot/CommonProxy.java b/src/main/java/moe/yuyui/mcstreamerbot/CommonProxy.java index 92f3d08..581bc03 100644 --- a/src/main/java/moe/yuyui/mcstreamerbot/CommonProxy.java +++ b/src/main/java/moe/yuyui/mcstreamerbot/CommonProxy.java @@ -15,7 +15,7 @@ public class CommonProxy { // preInit "Run before anything else. Read your config, create blocks, items, etc, and register them with the // GameRegistry." (Remove if not needed) public void preInit(FMLPreInitializationEvent event) { - Config.configuration = new Configuration(event.getSuggestedConfigurationFile()); + Config.configuration = new Configuration(event.getSuggestedConfigurationFile(), Tags.CONFIG_VERSION); Config.synchronizeConfiguration(); MCStreamerBot.LOG.info("MCStreamerBot is meowing in version " + Tags.VERSION); diff --git a/src/main/java/moe/yuyui/mcstreamerbot/MCStreamerBot.java b/src/main/java/moe/yuyui/mcstreamerbot/MCStreamerBot.java index f0acd69..0a2d6d5 100644 --- a/src/main/java/moe/yuyui/mcstreamerbot/MCStreamerBot.java +++ b/src/main/java/moe/yuyui/mcstreamerbot/MCStreamerBot.java @@ -13,7 +13,7 @@ import moe.yuyui.mcstreamerbot.common.EventListener; @Mod( modid = MCStreamerBot.MODID, - version = "1.0.1-" + Tags.VERSION, + version = Tags.VERSION, name = "MCStreamerBot", acceptedMinecraftVersions = "[1.7.10]", guiFactory = "moe.yuyui." + MCStreamerBot.MODID + ".gui.MCStreamerBotGuiFactory") diff --git a/src/main/resources/LICENSE b/src/main/resources/LICENSE index 63b4b68..4204d26 100644 --- a/src/main/resources/LICENSE +++ b/src/main/resources/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) [year] [fullname] +Copyright (c) 2024 Yui yui@yuyui.moe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info index 6275554..31822d5 100644 --- a/src/main/resources/mcmod.info +++ b/src/main/resources/mcmod.info @@ -3,13 +3,13 @@ "modList": [{ "modid": "${modId}", "name": "${modName}", - "description": "An example mod for Minecraft 1.7.10 with Forge focused on a stable setup.", + "description": "A mod that integrates with Streamer.bot through websocket", "version": "${modVersion}", "mcversion": "${minecraftVersion}", - "url": "https://github.com/SinTh0r4s/MyMod", + "url": "https://git.osufx.com/yui/mc-streamerbot-integration", "updateUrl": "", - "authorList": ["SinTho0r4s"], - "credits": "", + "authorList": ["yuyui.moe"], + "credits": "yuyui.moe for developing this mod, Vampurrya for the idea.", "logoFile": "", "screenshots": [], "parent": "",