From a1d424a7981c2ecb859546105e16d8611cd5c2d3 Mon Sep 17 00:00:00 2001 From: Magnus Jensen Date: Tue, 7 Nov 2023 07:17:28 +0100 Subject: [PATCH] fix mods.toml --- CHANGELOG.md | 7 ++----- gradle.properties | 2 +- src/main/resources/META-INF/mods.toml | 10 +++++----- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 603bb73..eb24986 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,2 @@ -## 1.18.2 - 1.0.0 -- Introduces timed AFK marking -- Ability to kick player after x seconds of being AFK -- Ability to format AFK message and kick message to your liking -- Lists the player name as [AFK] (with ability to customize) in tab list \ No newline at end of file +## 1.18.2 - 1.0.1 +- Fix startup error \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 50e4117..cd26bd6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -47,7 +47,7 @@ mod_name=Simple AFK # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=LGPL-3.0 # The mod version. See https://semver.org/ -mod_version=1.0.0 +mod_version=1.0.1 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index bd26f94..2533e4a 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -15,13 +15,13 @@ license="${mod_license}" # A list of mods - how many allowed here is determined by the individual mod loader [[mods]] #mandatory # The modid of the mod -modId="${mod_id}" #mandatory +modId="simpleafk" #mandatory # The version number of the mod - there's a few well known ${} variables useable here or just hardcode it # ${file.jarVersion} will substitute the value of the Implementation-Version as read from the mod's JAR file metadata # see the associated build.gradle script for how to populate this completely automatically during a build -version="${mod_version}" #mandatory +version="${file.jarVersion}" #mandatory # A display name for the mod -displayName="mod_name" #mandatory +displayName="${mod_name}" #mandatory # A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/ #updateJSONURL="https://change.me.example.invalid/updates.json" #optional # A URL for the "homepage" for this mod, displayed in the mod UI @@ -35,7 +35,7 @@ authors="${mod_authors}" #optional # The description text for the mod (multi line!) (#mandatory) description='''${mod_description}''' # A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional. -[[dependencies.${mod_id}]] #optional +[[dependencies.simpleafk]] #optional # the modid of the dependency modId="forge" #mandatory # Does this dependency have to exist - if not, ordering below must be specified @@ -47,7 +47,7 @@ description='''${mod_description}''' # Side this dependency is applied on - BOTH, CLIENT or SERVER side="BOTH" # Here's another dependency -[[dependencies.${mod_id}]] +[[dependencies.simpleafk]] modId="minecraft" mandatory=true # This version range declares a minimum of the current minecraft version up to but not including the next major version