diff --git a/README.MD b/README.MD index 918d999..44669c3 100644 --- a/README.MD +++ b/README.MD @@ -1,5 +1,5 @@ > [!NOTE] -> New update: 3.4.2: [BlockLines & Animations](https://github.com/unldenis/holoeasy?tab=readme-ov-file#blockline--animations). Scroll down for more information. +> New update: 3.4.3: [BlockLines & Animations](https://github.com/unldenis/holoeasy?tab=readme-ov-file#blockline--animations). Scroll down for more information. HoloEasy is a simple, modern and high-performant Java and Kotlin Minecraft Hologram library for 1.8-1.20.4 servers. @@ -20,7 +20,7 @@ Lightweight replacement for Holographic Display. HoloEasy only uses packets inst com.github.unldenis.holoeasy holoeasy-core - 3.4.2 + 3.4.3 @@ -34,7 +34,7 @@ Lightweight replacement for Holographic Display. HoloEasy only uses packets inst #### Gradle ```kotlin -implementation("com.github.unldenis.holoeasy:holoeasy-core:3.4.2") +implementation("com.github.unldenis.holoeasy:holoeasy-core:3.4.3") // For java projects include also the kotlin stdlib implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.21") @@ -139,7 +139,7 @@ plugin.registerHolograms { ``` ## BlockLine & Animations -From 3.4.2 version, library added support for: +From 3.4.3 version, library added support for: - BlockLine: Instead of a dropping item it spawns an hologram with the block as helmet. - Animations: You can apply animations to hologram lines.

diff --git a/holoeasy-core/pom.xml b/holoeasy-core/pom.xml index f0ce8f0..6764f3a 100644 --- a/holoeasy-core/pom.xml +++ b/holoeasy-core/pom.xml @@ -6,7 +6,7 @@ org.holoeasy holoeasy - 3.4.2 + 3.4.3 holoeasy-core diff --git a/holoeasy-core/src/main/kotlin/org/holoeasy/util/VersionUtil.kt b/holoeasy-core/src/main/kotlin/org/holoeasy/util/VersionUtil.kt index 5b7a89e..4e846b1 100644 --- a/holoeasy-core/src/main/kotlin/org/holoeasy/util/VersionUtil.kt +++ b/holoeasy-core/src/main/kotlin/org/holoeasy/util/VersionUtil.kt @@ -29,10 +29,17 @@ object VersionUtil { init { // Bukkit method that was added in 2011 // Example value: 1.20.4-R0.1-SNAPSHOT - val bpName = Bukkit.getServer().bukkitVersion + // Example value: 1.14-R0.1-SNAPSHOT + val bkName = Bukkit.getServer().bukkitVersion + + val bkVersion = bkName.split("-")[0] + + // 1.20.4 + // 1.14 // Split with '.' and get first two elements - VERSION = bpName.split(".").let { "V${it[0]}_${it[1]}"} + + VERSION = bkVersion.split(".").let { "V${it[0]}_${it[1]}"} CLEAN_VERSION = VersionEnum.valueOf(VERSION) } diff --git a/holoeasy-example-kotlin/pom.xml b/holoeasy-example-kotlin/pom.xml index 7a2ce9e..72dbc55 100644 --- a/holoeasy-example-kotlin/pom.xml +++ b/holoeasy-example-kotlin/pom.xml @@ -6,7 +6,7 @@ org.holoeasy holoeasy - 3.4.2 + 3.4.3 holoeasy-example-kotlin diff --git a/holoeasy-example/pom.xml b/holoeasy-example/pom.xml index 2efa9c1..9973203 100644 --- a/holoeasy-example/pom.xml +++ b/holoeasy-example/pom.xml @@ -7,7 +7,7 @@ org.holoeasy holoeasy - 3.4.2 + 3.4.3 holoeasy-example diff --git a/pom.xml b/pom.xml index ecf343b..fbaa508 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ org.holoeasy holoeasy - 3.4.2 + 3.4.3 pom holoeasy-core @@ -99,7 +99,7 @@ - +