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

walkmc.Provider.kt Maven / Gradle / Ivy

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()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy