Skip to content

Commit

Permalink
[+] Hotfix 0.1 Formats
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdcxdes committed Jan 2, 2024
1 parent 92ff9d6 commit 23ae8e6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
26 changes: 14 additions & 12 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "com.tierlistmc.papi"
version = "1.5"
version = "1.5-hotfix01"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tierlistmc/papi/expansion/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class Config(private val logger: Logger) {
}

fun getFormat(tierType: String): String {
val value = config.getString("formats.$tierType", "&f{name}")!!
val value = config.getString("formats.${tierType.uppercase()}", "&f{name}")!!
if (!value.contains("{name}")) {
logger.warning("Invalid format for tier type $tierType: $value")
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tierlistmc/papi/expansion/TierlistMC.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TierlistMC : PlaceholderExpansion(), Listener {
}

override fun getVersion(): String {
return "1.5"
return "1.5-hotfix01"
}

override fun onRequest(player: OfflinePlayer, params: String): String {
Expand Down

0 comments on commit 23ae8e6

Please sign in to comment.