com.skillw.pouvoir.api.plugin.SubPouvoir.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Pouvoir Show documentation
Show all versions of Pouvoir Show documentation
Bukkit Script Engine Plugin.
package com.skillw.pouvoir.api.plugin
import com.skillw.pouvoir.api.manager.ManagerData
import com.skillw.pouvoir.api.plugin.map.component.Registrable
import org.bukkit.plugin.java.JavaPlugin
import taboolib.common.platform.function.console
import taboolib.module.lang.sendLang
interface SubPouvoir : Registrable {
var managerData: ManagerData
val plugin: JavaPlugin
fun load() {
managerData.load()
console().sendLang("plugin-load", key)
}
fun enable() {
managerData.enable()
console().sendLang("plugin-enable", key)
}
fun active() {
managerData.active()
}
fun disable() {
managerData.disable()
console().sendLang("plugin-disable", key)
}
override fun register() {
TotalManager.register(this.managerData)
}
fun reload() {
managerData.reload()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy