From 1e8adf83a25a409b7c32acab582747b6f61eb192 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sun, 13 Feb 2022 15:53:12 +0000 Subject: [PATCH] Added %boosters_active_name% --- .../main/kotlin/com/willfp/boosters/BoostersPlugin.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt index 118e220..5facd8a 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt @@ -51,6 +51,17 @@ class BoostersPlugin : LibReforgePlugin(0, 14269, "&e") { ) ) + PlaceholderManager.registerPlaceholder( + PlaceholderEntry( + this, + "active_name", + { + BoosterUtils.getActiveBooster()?.booster?.name ?: "" + }, + false + ) + ) + PlaceholderManager.registerPlaceholder( PlaceholderEntry( this,