Skip to main content

Simple Enchantments Integration

ArenaPvP integrates with Simple Enchantments to preserve custom enchantments on items when kits are created and applied.

How It Works​

When Simple Enchantments is detected at startup, ArenaPvP uses its API to:

  1. Preserve enchantments in kit presets — When an admin creates a kit with /arena kitcreate, the custom enchantments on each item are serialized and stored along with the item data.
  2. Restore enchantments on kit application — When a player spawns in an arena with a kit, the enchantments are reapplied to the items.

Without Simple Enchantments, kits still work normally — items just won't have custom enchantment data.

Setup​

  1. Install Simple Enchantments on your Hytale server.
  2. Start the server — ArenaPvP detects it automatically.
  3. You'll see a success log message on startup.

No additional configuration is needed.

Simple Enchantments API Reference​

For developers, the Simple Enchantments plugin (org.herolias.plugin.api.EnchantmentApi) provides:

MethodDescription
addEnchantment(item, enchantmentId, level)Add an enchantment to an item, returns the modified ItemStack
removeEnchantment(item, enchantmentId)Remove an enchantment, returns modified ItemStack
getEnchantmentLevel(item, enchantmentId)Get the level of a specific enchantment on an item
hasEnchantment(item, enchantmentId)Check if an item has a specific enchantment
getEnchantments(item)Get all enchantments on an item as Map<String, Integer>
registerItemToCategory(itemName, category)Register an item to an enchantment category

Item Categories​

Simple Enchantments uses categories to determine which enchantments can be applied to which items:

CategoryDescription
MELEE_WEAPONSwords, axes used for melee
RANGED_WEAPONBows, crossbows
TOOLGeneral tools
PICKAXEPickaxes
SHOVELShovels
AXEAxes (woodcutting)
SHIELDShields
BOOTSFoot armor
HELMETHead armor
ARMORGeneral armor pieces
STAFFMagic staves
STAFF_MANAMana-based staves
STAFF_ESSENCEEssence-based staves

Creating Enchanted Kits​

To create a kit with enchanted items:

  1. Equip items with the custom enchantments you want (enchant them using Simple Enchantments' own commands or methods).
  2. Once your inventory is ready, run:
    /arena kitcreate enchanted-warrior Warrior
  3. The kit is saved with all enchantment data intact.
  4. Assign the kit to an arena template in config.json and players will receive the enchanted items.