Skip to content

Commit

Permalink
[CI Skip] 1.8 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
toxicity188 committed Nov 2, 2024
1 parent af99b70 commit f985548
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 7 deletions.
22 changes: 17 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ allprojects {
apply(plugin = "org.jetbrains.dokka")

group = "kr.toxicity.hud"
version = "1.7" + (System.getenv("BUILD_NUMBER")?.let { ".DEV-$it" } ?: "")
version = "1.8" + (System.getenv("BUILD_NUMBER")?.let { ".DEV-$it" } ?: "")

repositories {
mavenCentral()
Expand Down Expand Up @@ -209,10 +209,16 @@ fun Project.legacy() = also {
fun Project.modrinthPublish(depend: Jar, additionalJar: List<Jar>, loadersList: List<String>, versionList: List<String>, requiredDependency: List<String>) {
apply(plugin = "com.modrinth.minotaur")
modrinth {
val log = System.getenv("COMMIT_MESSAGE")
if (log != null) {
versionType = "alpha"
changelog = log
} else {
versionType = "release"
changelog = rootProject.file("changelog/${project.version}.md").readText()
}
token = System.getenv("MODRINTH_API_TOKEN")
projectId = "betterhud2"
versionType = "alpha"
changelog = System.getenv("COMMIT_MESSAGE")
versionName = "BetterHud ${project.version} for ${depend.archiveClassifier.get()}"
versionNumber = project.version as String
uploadFile.set(depend.archiveFile)
Expand Down Expand Up @@ -452,10 +458,16 @@ tasks.create("modrinthPublish") {
hangarPublish {
publications.register("plugin") {
version = project.version as String
channel = "Snapshot"
id = "BetterHud"
apiKey = System.getenv("HANGAR_API_TOKEN")
changelog = System.getenv("COMMIT_MESSAGE")
val log = System.getenv("COMMIT_MESSAGE")
if (log != null) {
changelog = log
channel = "Snapshot"
} else {
changelog = rootProject.file("changelog/${project.version}.md").readText()
channel = "Release"
}
platforms {
register(Platforms.PAPER) {
jar = file("build/libs/${project.name}-${project.version}-bukkit.jar")
Expand Down
11 changes: 11 additions & 0 deletions changelog/1.7.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Features
- 1.21.3 supports.
- Bug fixes.
- Compass location data will saved.
- A layout option 'opacity' is added.(0 to 1)
- Now compass can use custom icon.
- "fancy" head render type added.
- Some experimental effect is added.(property)
- A layout option 'render-scale' is added.(Compare to primary scale, primary scale is json scale of texture, render-scale is shader scale. you can use both of that.)
- LuckPerms and TextPlaceholderAPI supports(fabric)
- Fabric build is now done.
21 changes: 21 additions & 0 deletions changelog/1.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# BetterHud 1.8

## Fix
- Merge with other resource pack #47
- Attribute API in Bukkit to supports 1.21.3.
- Stable version for Fabric 1.21.3 is released.
- Optimizes resource pack zip.

## Add
- 'parties_is_leader' placeholder is added.
- Command now uses [BetterCommand](https://github.com/toxicity188/BetterCommand) library.
- Add lang folder (like en_US.json)

## Change
- CI is changed to split each platform.

## Make your own lang
- step 1. Join your server.
- step 2. Command /hud gen to create your language file.
- step 3. Edit BetterHud/lang/your_language.json file.
- step 4. if you want, you can contribute BetterHud to upload this lang file in my Discord or PR in GitHub.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ object CommandManager : BetterHudManager {
//Reload
private val reload_tryReload = library.registerKey(CommandMessage("betterhud.reload.message.try_reload", Component.text("Trying to reload. please wait...")))
private val reload_onReload = library.registerKey(CommandMessage("betterhud.reload.message.on_reload", Component.text("The plugin is still reloading!")))
private val reload_success = library.registerKey(CommandMessage("betterhud.reload.message.success", Component.text("Reload successful! [time] ms)")))
private val reload_success = library.registerKey(CommandMessage("betterhud.reload.message.success", Component.text("Reload successful! ([time] ms)")))
private val reload_failure1 = library.registerKey(CommandMessage("betterhud.reload.message.failure.1", Component.text("Reload failed.")))
private val reload_failure2 = library.registerKey(CommandMessage("betterhud.reload.message.failure.2", Component.text("Cause: [cause]")))
@Command
Expand Down
5 changes: 4 additions & 1 deletion dist/src/main/resources/lang/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"betterhud.hud.remove.message.success": "Successfully removed.",
"betterhud.null.compass": "Unable to find this compass: [value]",
"betterhud.null.hud": "Unable to find this hud: [value]",
"betterhud.null.icon": "Unable to find this icon: [icon]",
"betterhud.null.player": "Unable to find this player: [value]",
"betterhud.null.popup": "Unable to find this popup: [value]",
"betterhud.null.vector": "Invalid vector: [value]",
Expand Down Expand Up @@ -52,7 +53,7 @@
"betterhud.reload.message.failure.1": "Reload failed.",
"betterhud.reload.message.failure.2": "Cause: [cause]",
"betterhud.reload.message.on_reload": "The plugin is still reloading!",
"betterhud.reload.message.success": "Reload successful! [time] ms)",
"betterhud.reload.message.success": "Reload successful! ([time] ms)",
"betterhud.reload.message.try_reload": "Trying to reload. please wait...",
"betterhud.turn.description": "Turns on or off HUD.",
"betterhud.turn.off.description": "Turns off your HUD.",
Expand Down Expand Up @@ -82,6 +83,8 @@
"internal.type.float.required": "<red>(float)",
"internal.type.hud.optional": "<dark_aqua>[hud]",
"internal.type.hud.required": "<red>(hud)",
"internal.type.icon.optional": "<dark_aqua>[icon]",
"internal.type.icon.required": "<red>(icon)",
"internal.type.integer.optional": "<dark_aqua>[integer]",
"internal.type.integer.required": "<red>(integer)",
"internal.type.long.optional": "<dark_aqua>[long]",
Expand Down
3 changes: 3 additions & 0 deletions dist/src/main/resources/lang/ko_KR.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"betterhud.hud.remove.message.success": "성공적으로 제거되었습니다.",
"betterhud.null.compass": "해당 나침반을 찾을 수 없습니다: [value]",
"betterhud.null.hud": "해당 HUD를 찾을 수 없습니다: [value]",
"betterhud.null.icon": "해당 아이콘을 찾을 수 없습니다: [value]",
"betterhud.null.player": "해당 플레이어를 찾을 수 없습니다: [value]",
"betterhud.null.popup": "해당 팝업을 찾을 수 없습니다: [value]",
"betterhud.null.vector": "잘못된 벡터: [value]",
Expand Down Expand Up @@ -82,6 +83,8 @@
"internal.type.float.required": "<red>(부동소숫점)",
"internal.type.hud.optional": "<dark_aqua>[HUD]",
"internal.type.hud.required": "<red>(HUD)",
"internal.type.icon.optional": "<dark_aqua>[아이콘]",
"internal.type.icon.required": "<red>(아이콘)",
"internal.type.integer.optional": "<dark_aqua>[정수]",
"internal.type.integer.required": "<red>(정수)",
"internal.type.long.optional": "<dark_aqua>[정수]",
Expand Down

0 comments on commit f985548

Please sign in to comment.