mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-25 00:51:20 +01:00
Fixed a couple more bugs
This commit is contained in:
parent
27a7929a17
commit
be8614e7b4
@ -129,10 +129,22 @@ abstract class EcoEnchant(
|
||||
"Allows getting $id from an Enchanting Table",
|
||||
PermissionDefault.TRUE
|
||||
)
|
||||
|
||||
if (Bukkit.getPluginManager().getPermission("ecoenchants.fromtable.*") == null) {
|
||||
Bukkit.getPluginManager().addPermission(
|
||||
Permission(
|
||||
"ecoenchants.fromtable.*",
|
||||
"Allows getting all enchantments from an Enchanting Table",
|
||||
PermissionDefault.TRUE
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
permission.addParent(
|
||||
Bukkit.getPluginManager().getPermission("ecoenchants.fromtable.*")!!,
|
||||
true
|
||||
)
|
||||
|
||||
Bukkit.getPluginManager().addPermission(permission)
|
||||
}
|
||||
|
||||
|
@ -153,6 +153,10 @@ object EcoEnchants {
|
||||
set(null, true)
|
||||
}
|
||||
|
||||
if (enchantment is EcoEnchant) {
|
||||
removeEnchant(enchantment)
|
||||
}
|
||||
|
||||
Enchantment.registerEnchantment(enchantment)
|
||||
EnchantRegistrations.registerEnchantments()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user