Skip to content

Commit

Permalink
fix: implement miniplaceholders correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianmakila committed Jan 18, 2024
1 parent 235add4 commit 0f56d58
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private Component parseMessage(Message message) {
);

if (this.wcl.dependencyManager().isPresent(Dependency.MINI_PLACEHOLDERS)) {
resolverBuilder = resolverBuilder.resolver(MiniPlaceholders.getAudiencePlaceholders(message.author()));
resolverBuilder = resolverBuilder.resolver(MiniPlaceholders.getAudienceGlobalPlaceholders(message.author()));
}

return this.miniMessage.deserialize(
Expand Down
43 changes: 22 additions & 21 deletions paper/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
plugins {
id("webhookchatlogger.platform-conventions")
alias(libs.plugins.pluginYml)
id("webhookchatlogger.platform-conventions")
alias(libs.plugins.pluginYml)
}

dependencies {
compileOnly(libs.platform.paper)
compileOnly(libs.platform.paper)

implementation(libs.bstats.bukkit)
implementation(libs.bstats.bukkit)
}

bukkit {
main = "fi.fabianadrian.webhookchatlogger.paper.WebhookChatLoggerPaper"
name = rootProject.name
apiVersion = "1.17"
authors = listOf("FabianAdrian")
website = "https://github.com/fabianmakila/WebhookChatLogger"
commands {
register("webhookchatlogger") {
aliases = listOf("wcl")
description = "WebhookChatLogger main command"
permission = "webhookchatlogger.reload"
}
}
permissions {
register("webhookchatlogger.reload") {
description = "Allows you to run the reload command"
}
}
main = "fi.fabianadrian.webhookchatlogger.paper.WebhookChatLoggerPaper"
name = rootProject.name
apiVersion = "1.17"
authors = listOf("FabianAdrian")
website = "https://github.com/fabianmakila/WebhookChatLogger"
softDepend = listOf("MiniPlaceholders")
commands {
register("webhookchatlogger") {
aliases = listOf("wcl")
description = "WebhookChatLogger main command"
permission = "webhookchatlogger.reload"
}
}
permissions {
register("webhookchatlogger.reload") {
description = "Allows you to run the reload command"
}
}
}

0 comments on commit 0f56d58

Please sign in to comment.