walkmc.Provider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of resources-addon Show documentation
Show all versions of resources-addon Show documentation
A resources API/Addon with compatibility with others plugins
The newest version!
package walkmc
import com.comphenix.protocol.*
import com.sk89q.worldedit.*
import com.sk89q.worldedit.session.*
import com.sk89q.worldguard.bukkit.*
import net.luckperms.api.*
import net.milkbowl.vault.economy.*
import net.skinsrestorer.api.*
import walkmc.extensions.*
/**
* Provider instance of [LuckPerms].
*/
val LuckPermProvider: LuckPerms by lazy {
LuckPermsProvider.get()
}
/**
* Provider instance of vault [Chat].
*/
val ChatProvider: Chat by lazy {
servicesManager.getRegistration(Chat::class.java).provider
}
/**
* Provider instance of vault [Economy].
*/
val EconomyProvider: Economy by lazy {
servicesManager.getRegistration(Economy::class.java).provider
}
/**
* Provider instance of world guard [RegionContainer].
*/
val RegionContainer: RegionContainer by lazy {
WorldGuardPlugin.inst().regionContainer
}
/**
* Provider instance of world edit [SessionManager].
*/
val SessionManager: SessionManager by lazy {
WorldEdit.getInstance().sessionManager
}
/**
* Provider instance of protocol lib [ProtocolManager].
*/
val ProtocolManager: ProtocolManager by lazy {
ProtocolLibrary.getProtocolManager()
}
/**
* Provider instance of skins restorer [SkinsRestorerAPI].
*/
val SkinRestorer: SkinsRestorerAPI by lazy {
SkinsRestorerAPI.getApi()
}