Sueta

PrimeDropEnchant

1.0.1

Be quick to the punch in saving your enchantments!

·Plugin

PrimeDropEnchant is a simple plugin that allows players to add or remove enchantments from a book with the ability to configure a cost for doing so.

Click Me To Preview!



Enchant Usage:
When a player right clicks an enchanted item with a book it will open up a GUI that allows the player to disenchant the item for a cost. Alternatively the player can use the newly created enchantment book on an item to apply the enchants.

Command Usage (Alias /primedrop, /pde):
/primedropenchant - General plugin information
/primedropenchant reload - Reloads the configuration

Permissions:
primedropenchant.admin - Allows access to the reload command
primedropenchant.transfer - Allows players to drop enchantments from items to a book
primedropenchant.bookenchant - Allows players to apply enchantments to an item from a book

Config

# PrimeDropEnchant
#
# Developed by PrimeUX, (c) 2019
# For assistance please visit our website: https://primeux.net
#
# For item types: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html

# the language to use
locale: en

# the item to contain all transferred enchantments
enchantmentContainer:
type: ENCHANTED_BOOK
name: '&b%player%''s book of Enchanting'
lore:
- '&bTransferred enchantments!'

# defines which items players can enchant items with via the use of books
enchantWhitelist:
- DIAMOND_AXE
- DIAMOND_BOOTS
- DIAMOND_CHESTPLATE
- DIAMOND_HELMET
- DIAMOND_HOE
- DIAMOND_LEGGINGS
- DIAMOND_PICKAXE
- DIAMOND_SHOVEL
- DIAMOND_SWORD
- IRON_AXE
- IRON_BOOTS
- IRON_CHESTPLATE
- IRON_HELMET
- IRON_HOE
- IRON_LEGGINGS
- IRON_PICKAXE
- IRON_SHOVEL
- IRON_SWORD
- GOLD_AXE
- GOLD_BOOTS
- GOLD_CHESTPLATE
- GOLD_HELMET
- GOLD_HOE
- GOLD_LEGGINGS
- GOLD_PICKAXE
- GOLD_SHOVEL
- GOLD_SWORD
- BOW
- CROSSBOW
- SHEARS
- FISHING_ROD

# defines which items players can drop/transfer enchantments from
transferWhitelist:
- DIAMOND_AXE
- DIAMOND_BOOTS
- DIAMOND_CHESTPLATE
- DIAMOND_HELMET
- DIAMOND_HOE
- DIAMOND_LEGGINGS
- DIAMOND_PICKAXE
- DIAMOND_SHOVEL
- DIAMOND_SWORD
- IRON_AXE
- IRON_BOOTS
- IRON_CHESTPLATE
- IRON_HELMET
- IRON_HOE
- IRON_LEGGINGS
- IRON_PICKAXE
- IRON_SHOVEL
- IRON_SWORD
- GOLD_AXE
- GOLD_BOOTS
- GOLD_CHESTPLATE
- GOLD_HELMET
- GOLD_HOE
- GOLD_LEGGINGS
- GOLD_PICKAXE
- GOLD_SHOVEL
- GOLD_SWORD
- BOW
- CROSSBOW
- SHEARS
- FISHING_ROD

# All available enchantments
#
# You can configure which enchantments players can drop or enchant.
# For the currency, you can use either: money or experience
# If money, the `cost.amount` can be a decimal, and will charge players'
# economy balance (requires Vault). If its `experience` then it will take the
# player's XP.
#
# Set the cost amount to -1 to not charge players
#
# The `id` field refers to the internal Bukkit enchantment API. Seek the resource below:
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
#
# Note: For modded servers (ie: Tekkit), you can use custom enchantments as long as they extend
# the vanilla enchantment system. Contact your mod pack's developer for help.
enchantments:
- id: ARROW_DAMAGE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: ARROW_FIRE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: ARROW_INFINITE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: ARROW_KNOCKBACK
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: BINDING_CURSE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: CHANNELING
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: DAMAGE_ALL
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: DAMAGE_ARTHROPODS
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: DAMAGE_UNDEAD
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: DEPTH_STRIDER
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: DIG_SPEED
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: DURABILITY
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: FIRE_ASPECT
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: FROST_WALKER
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: IMPALING
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: KNOCKBACK
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: LOOT_BONUS_BLOCKS
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: LOOT_BONUS_MOBS
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: LOYALTY
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: LUCK
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: LURE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: MENDING
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: MULTISHOT
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: OXYGEN
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: PIERCING
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: PROTECTION_ENVIRONMENTAL
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: PROTECTION_FALL
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: PROTECTION_FIRE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: PROTECTION_PROJECTILE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: QUICK_CHARGE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: RIPTIDE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: SILK_TOUCH
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: SWEEPING_EDGE
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: THORNS
allow: true
cost:
amount: 10
perLevel: true
currency: money
- id: VANISHING_CURSE
allow: false
- id: WATER_WORKER
allow: true
cost:
amount: 10
perLevel: true
currency: money

Enhancement Todo List

  • Ability to drop enchant Vanilla Enchantment Books
  • Bypass, Per De/Enchant and Grouped Permissions
  • Whitelist for what items can accept what enchantments
  • Option to split books into separate enchantment books
  • Warning message upon overwriting the same enchant
  • Configurable Messages/GUI

Please contact me regarding any bugs or suggestions you have for the plugin via Spigot, Discord (SwiftSwamp#4807) or the Website (PrimeUX.net). I cannot fix something you don't report!

Similar projects

Plugin →