Skip to content

Commit

Permalink
backport to ~1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
jadelily18 committed Jun 25, 2023
1 parent 3b65610 commit 5edfa9d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.2
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
loader_version=0.14.21

# Mod Properties
mod_version = 2.0.0+1.20
mod_version = 2.0.0+1.19
maven_group = com.lilydev
archives_base_name = rules

# Dependencies
fabric_version=0.83.1+1.20.1
fabric_version=0.76.0+1.19.2
flk_version=1.9.5+kotlin.1.8.22
lilylib_version=0.1.0-beta.2
placeholder_api_version=2.1.1+1.20
placeholder_api_version=2.0.0+1.19.4
fabric_permissions_api_version=0.2-SNAPSHOT
8 changes: 3 additions & 5 deletions src/main/kotlin/com/lilydev/rules/RulesServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ object RulesServer : DedicatedServerModInitializer {
.requires(Permissions.require("rules.command.rules", 0))
.executes { ctx ->
ctx.source.sendFeedback(
{
TextParserUtils.formatText(
RulesUtils.generateRulesString(config.data)
)
},
TextParserUtils.formatText(
RulesUtils.generateRulesString(config.data)
),
false
)
return@executes Command.SINGLE_SUCCESS
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/lilydev/rules/config/RulesConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ open class RulesConfig(modName: String, path: String, fileName: String) : JsonCo

rule["title"] = ""
rule["description"] = "This server does not have a configured rules.json file yet!\n<gray>" +
"Learn how to create one <underline><blue><url:'https://github.com/Lilydev-by-jade/Rules'>" +
"Learn how to create one <underline><blue><url:'https://docs.lilydev.com/docs/Mods/Rules'>" +
"here</url></blue></underline>.</gray>"

configMap["rules"] = arrayListOf(rule)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"depends": {
"fabricloader": ">=0.14.6",
"fabric": "*",
"minecraft": "~1.20",
"minecraft": "~1.19",
"java": ">=17",
"fabric-language-kotlin": "*",
"lilylib": ">=0.1.0-beta.2"
Expand Down

0 comments on commit 5edfa9d

Please sign in to comment.