All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.pouvoir.internal.feature.compat.placeholder.PlaceholderAPIHooker.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.internal.feature.compat.placeholder

import com.skillw.pouvoir.Pouvoir
import org.bukkit.entity.Player
import taboolib.platform.compat.PlaceholderExpansion

object PlaceholderAPIHooker : PlaceholderExpansion {
    override val identifier = "pou"
    override fun onPlaceholderRequest(player: Player?, args: String): String {
        player ?: return args
        return Pouvoir.placeholderManager.replace(player, "%pou_$args%")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy