diff --git a/src/main/kotlin/dev/w1zzrd/spigot/landmines2/LandmineEnchantment.kt b/src/main/kotlin/dev/w1zzrd/spigot/landmines2/LandmineEnchantment.kt new file mode 100644 index 0000000..2e17763 --- /dev/null +++ b/src/main/kotlin/dev/w1zzrd/spigot/landmines2/LandmineEnchantment.kt @@ -0,0 +1,17 @@ +package dev.w1zzrd.spigot.landmines2 + +import org.bukkit.NamespacedKey +import org.bukkit.enchantments.Enchantment +import org.bukkit.enchantments.EnchantmentTarget +import org.bukkit.inventory.ItemStack + +class LandmineEnchantment(key: NamespacedKey): Enchantment(key) { + override fun getName() = "Landmine" + override fun getMaxLevel() = 1 + override fun getStartLevel() = 1 + override fun getItemTarget() = EnchantmentTarget.TOOL + override fun isTreasure() = false + override fun isCursed() = true + override fun conflictsWith(other: Enchantment) = true + override fun canEnchantItem(item: ItemStack) = false +} \ No newline at end of file