diff --git a/src/main/kotlin/com/mineinabyss/looty/features/consumable/ConsumeItemFromInventory.kt b/src/main/kotlin/com/mineinabyss/looty/features/consumable/ConsumeItemFromInventory.kt index b0d2b0f..e86b46a 100644 --- a/src/main/kotlin/com/mineinabyss/looty/features/consumable/ConsumeItemFromInventory.kt +++ b/src/main/kotlin/com/mineinabyss/looty/features/consumable/ConsumeItemFromInventory.kt @@ -4,8 +4,12 @@ import com.mineinabyss.geary.autoscan.AutoScan import com.mineinabyss.geary.systems.GearyListener import com.mineinabyss.geary.systems.accessors.Pointers import com.mineinabyss.idofront.serialization.SerializableItemStack +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable import org.bukkit.entity.Player +@Serializable +@SerialName("looty:consume_item") class ConsumeItemFromInventory( val type: SerializableItemStack, val amount: Int = 1, diff --git a/src/main/kotlin/com/mineinabyss/looty/features/consumable/RequiresConsumable.kt b/src/main/kotlin/com/mineinabyss/looty/features/consumable/RequiresConsumable.kt index c548c13..b78fbfb 100644 --- a/src/main/kotlin/com/mineinabyss/looty/features/consumable/RequiresConsumable.kt +++ b/src/main/kotlin/com/mineinabyss/looty/features/consumable/RequiresConsumable.kt @@ -9,7 +9,7 @@ import kotlinx.serialization.Serializable import org.bukkit.entity.Player @Serializable -@SerialName("looty:requiresConsumable") +@SerialName("looty:requires_consumable") class RequiresConsumable( val type: SerializableItemStack, val minAmount: Int = 1,