mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-21 14:55:17 +01:00
Registered player refresh function
This commit is contained in:
parent
9457260236
commit
88a306e7e2
@ -21,10 +21,12 @@ import com.willfp.ecoenchants.mechanics.EnchantingTableSupport
|
||||
import com.willfp.ecoenchants.mechanics.GrindstoneSupport
|
||||
import com.willfp.ecoenchants.mechanics.LootSupport
|
||||
import com.willfp.ecoenchants.mechanics.VillagerSupport
|
||||
import com.willfp.ecoenchants.target.EnchantLookup.clearEnchantCache
|
||||
import com.willfp.ecoenchants.target.EnchantLookup.heldEnchantLevels
|
||||
import com.willfp.libreforge.loader.LibreforgePlugin
|
||||
import com.willfp.libreforge.loader.configs.ConfigCategory
|
||||
import com.willfp.libreforge.registerHolderProvider
|
||||
import com.willfp.libreforge.registerPlayerRefreshFunction
|
||||
import org.bukkit.event.Listener
|
||||
|
||||
class EcoEnchantsPlugin : LibreforgePlugin() {
|
||||
@ -47,6 +49,7 @@ class EcoEnchantsPlugin : LibreforgePlugin() {
|
||||
|
||||
override fun handleEnable() {
|
||||
registerHolderProvider { it.heldEnchantLevels }
|
||||
registerPlayerRefreshFunction { it.clearEnchantCache() }
|
||||
}
|
||||
|
||||
override fun handleAfterLoad() {
|
||||
|
Loading…
Reference in New Issue
Block a user