Skip to content

Commit

Permalink
papi placeholder fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
toxicity188 committed Nov 26, 2024
1 parent c3f8895 commit e7050f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bootstrap/bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies {
compileOnly("com.github.SkriptLang:Skript:2.9.4")
compileOnly("net.skinsrestorer:skinsrestorer-api:15.4.4")
compileOnly("com.alessiodp.parties:parties-bukkit:3.2.16")
compileOnly("com.nexomc:nexo:0.1.0-dev.0")
compileOnly("com.nexomc:nexo:0.1.0-dev.24")
compileOnly("team.unnamed:creative-api:1.7.3")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class BukkitBootstrapImpl : BukkitBootstrap, JavaPlugin() {
PlaceholderManagerImpl.stringContainer.addPlaceholder("papi", object : HudPlaceholder<String> {
override fun getRequiredArgsLength(): Int = 1
override fun invoke(args: List<String>, reason: UpdateEvent): Function<HudPlayer, String> {
val format = "%${args[0]}%"
val format = "%${args.joinToString(",")}%"
return Function { player ->
runCatching {
PlaceholderAPI.setPlaceholders(player.bukkitPlayer, format)
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Feb 29 02:18:16 KST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit e7050f5

Please sign in to comment.