We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92d3345 + 23aee29 commit 4df24c8Copy full SHA for 4df24c8
module/bukkit/bukkit-hook/src/main/kotlin/taboolib/platform/compat/PlaceholderExpansion.kt
@@ -15,6 +15,22 @@ import taboolib.common.util.unsafeLazy
15
import taboolib.platform.BukkitPlugin
16
import java.util.function.Supplier
17
18
+fun String.replacePlaceholder(): String {
19
+ return try {
20
+ PlaceholderAPI.setPlaceholders(null, this)
21
+ } catch (ex: NoClassDefFoundError) {
22
+ this
23
+ }
24
+}
25
+
26
+fun List<String>.replacePlaceholder(): List<String> {
27
28
29
30
31
32
33
34
fun String.replacePlaceholder(player: Player): String {
35
return try {
36
PlaceholderAPI.setPlaceholders(player, this)
0 commit comments