EnchantGui 1.8 ~ 1.21.x Editable MaxLevel/Prices/Support custom enchantment & economy icon

EnchantGui 1.8 ~ 1.21.x Editable MaxLevel/Prices/Support custom enchantment & economy -----

Freely choose the enchantment for your items




Bug Fixed:
- Fixed file operation issue on Windows OS
----------, Jul 5, 2024

- The enchantment files have been renamed to proper name (e.g. DIG_SPEED.yml is renamed to efficiency.yml)
- Fixed issue with ExcellentEnchantment
- Added a new setting for file generation

Note: It is strongly recommended to always back up your enchantments folder before updating the plugin!
----------, Jul 3, 2024

- Fixed plugin unable to start on PaperMC 1.20.6 and above
----------, Jun 22, 2024

Bug Fix:
- Fixed stacked-item.price-multiply doesn't work
- Fixed Enchanted Book is not showing in the GUI when AllowToEnchantBook is set to true


Other Changes:
- Stacked book will not be restricted by stacked-item.enable: false/true, the plugin will take only 1 book and apply enchantment on it instead of all the book:
----------, Feb 15, 2023

Bug Fix:
- Fixed Level X doesn't exist in Y.yml false error.

Other changes:
- Item will now be returned to its previous slot
----------, Feb 13, 2023

Added:
- Able to change the display item for the enchantment
- Option to hide the enchantment that players do not have permission from the GUI
- Option to allow player to enchant book

Bug Fix:
- Fixed previous enchantment configuration get wiped after plugin performing a file update
Note: It is strongly recommended to always backup your enchantments folder before updating the plugin!
----------, Jan 18, 2023

Bug Fix:
- Fixed shift-right click can open the vanilla enchant
----------, Aug 12, 2022

Bug Fix:
- Fixed custom model data doesn't work
----------, Aug 10, 2022

Added:
- Custom model data support [ Click me to see how to set custom model data]
- New config setting to set which action to open the gui (Left/Right/Both)
----------, Aug 9, 2022

Added:
- Able to set enchantment limit for specific material (located in config.yml)
- Able to set enchantment level limit for specific material (located in enchantment's file)


Example of enchantment limit

Code (YAML):

enchantment-limit
:
  # The default amount of enchantment can be enchanted in an item is 3
  default-limit
: 3
  # Override the default limit, now diamond sword can have up to 5 enchantments
  override
:
   - DIAMOND_SWORD.5
 


Example of enchantment level limit

In DAMAGE_ALL.yml:

Code (YAML):

level-limit
:
 - STONE_SWORD.2
  - IRON_SWORD.3
 
Stone sword can enchant until Level 2 of sharpness, Iron Sword can enchant until Level 3 of sharpness.
Other items that are not listed in there can enchant to the highest level

Bug Fix:
- Issue with enchantment level exceeding the configured highest level
----------, Jun 14, 2022

Added 1.19 support
----------, Jun 9, 2022

Bug Fix:
- Fixed NPE error while loading enchantment

Added:
- An option to disable an economy for all the enchantment
Code (YAML):
# Disable an economy for all the enchantments
disabled-economy
: [ ]
  #- money
  #- level
  #- exp
  #- lapis
 
----------, Apr 8, 2022

Bug Fix:
- Fixed issue with item lore while enchanting custom enchantment
----------, Mar 14, 2022

Bug Fixed:
- Fixed blacklisted-items doesn't work

Improvement:
- Plugin will now display error message if it fails to load an enchantment, instead of the whole plugin stop working
----------, Feb 15, 2022

Bug Fix:
- Fixed multiply isn't working

Changes:
- Automatically convert the names of custom enchantment to title case
----------, Jan 28, 2022

Bug Fix:
- Fixed Vault dependency missing error. As it is mentioned in 3.6.0, Vault is no longer a requirement for the plugin
- Fixed PermissionForEachEnchantment isn't working
- Fixed PermissionForEachEnchantmentLevel isn't working
- Fixed CloseInventoryWhenNotEnoughCurrency isn't working
----------, Dec 28, 2021

Bug Fix:
- Fixed blacklisted-enchantments is not working
- Fixed AwardAdvancement is not working on 1.17~1.18.1
----------, Dec 13, 2021

Plugin Changes
No longer requires Vault

API Changes

You can either use the jar or maven to import into your project.

The event class PlayerEnchantItemEvent has been moved to other package.

Custom economy support
I know a lot of people has been waiting for this update, which is custom economy supports and yes, here it is!

In order to let EnchantGui uses your economy plugin, check out How to let EnchantGui use your economy and it requires some coding skill.
----------, Oct 30, 2021

Bug Fix:
- Wrong prefix for logger
- GUI items are not in the correct slot
- "Level not found" error when the item has a high level enchantment
----------, Jul 29, 2021

Added:
- Hex support
- use exp to enchant item
- minimum level requirement of each enchantment's level
- {EXP}, {MINIMUM_LEVEL} and {PLAYER_EXP} placeholder for the enchantment lore
- more sound effects
• when open gui
• successfully enchant
• fail to enchant (not enough money, level, etc)​
- skippable leveling (1 -> 5 -> 10)

Code (YAML):
levels:
  '1'
:
    money
: 1000.0
    level
: 2
    exp
: 0
    lapis
: 3
    minimum_level
: 5
  '5'
:
    money
: 8000
    level
: 15
    exp
: 0
    lapis
: 15
    minimum_level
: 10
  '10'
:
    money
: 25000
    level
: 20
    exp
: 0
    lapis
: 20
    minimum_level
: 30
  '15'
:
    money
: 50000
    level
: 30
    exp
: 0
    lapis
: 32
    minimum_level
: 45
----------, Jul 22, 2021

Added:
- getItem() in PlayerEnchantItemEvent
----------, May 16, 2021

Bug Fix:
- Fixed item disappear when player's inventory is full
----------, May 1, 2021

Added:
- Custom Event: PlayerEnchantItemEvent
Code (Java):

Player getPlayer ( ) ;

// The enchantment player has just enchanted
Enchantment getEnchantment ( ) ;

// The level of the enchantment player has just enchanted
int getLevel ( ) ;

// The cost player pay for the enchant
Cost getCost ( ) ;
 
- option to award player Enchant Item advancement (only for above 1.12)
Code (YAML):

# Award enchanting advancement to player after they enchant their tools
AwardAdvancement
: false
 
----------, Apr 4, 2021

Bug Fix:
- ignore-conflict doesn't work
- page issue
- StringIndexOutOfBoundsException error
----------, Mar 12, 2021

Bug Fix:
- Item disappear if inventory is full
- failed to get economy provider

Added:
- new message
Code (YAML):
Message:
  Inventory-Full
: '&cYour inventory is full! Please clean out some space before enchanting!'
- sound effect after players enchanting their tools
Code (YAML):
enchant-sound:
  enable
: true
  sound
: BLOCK_ENCHANTMENT_TABLE_USE
  volume
: 1.0
  pitch
: 1.0
- ignore_conflict in enchantment settings
Code (YAML):
# Ignore the enchantment conflict set by minecraft or other custom enchantment plugin
ignore-conflict
:
  - ''
Note: config.yml and enchantments file will be automatically updated
----------, Mar 6, 2021

Bug Fix:
- Enchantment disappear from gui after enchanting level 1
- Unable to enable/disable custom enchantment through command
----------, Feb 2, 2021

Bug Fix:
- blacklisted-enchantments sometimes doesn't work
----------, Jan 31, 2021

Bug Fix:
- Item disappearing issue
----------, Jan 27, 2021

Added:
- unsafe-item in enchantment settings
- auto updater for enchantments' file

Note: Please backup your enchantments' file before updating to this version so you can restore the enchantments' file if it fails to update and the files are reset
----------, Nov 28, 2020

v3.2.3

Added:

- new option
Code (YAML):
# Only set this to false if the custom enchantment plugin you are using already display the enchantment name
ShowCustomEnchantmentNameOnLore
: true
----------, Nov 20, 2020

Bugs Fix:
- unable to disable FillItem
- CloseInventoryWhenNotEnoughCurrency doesn't work
----------, Oct 19, 2020

EnchantGui 3.2.1

Removed debug message
----------, Oct 9, 2020

Bug Fixed:
- Fixed renamed/lored lapis doesn't get removed from player's inventory
- Fixed player still able to enchant some custom enchantment into the item even though it has reached the max level

Added:
- Added an option to allow/disallow player enchanting a stacked item

*Note please add this to your config.yml
Code (YAML):
stacked-item:
  allow
: false
  multi-price
: false
 
----------, Sep 11, 2020

Bug Fixed:
- Fixed 1.16 enchantment (soul speed) lore bug
- Fixed custom enchantment doesn't go to next level
- Fixed wrong boolean at OpenGuiWhenNoAvailableItem
----------, Aug 11, 2020

Added:
- new setting for not opening gui for player if they don't have any item.

Note: Please copy this and paste it into your config.yml
Code (YAML):
# If set to true, plugin wont open the gui for player if they don't have any item can be enchanted.
# Also the plugin will send No-Available-Item message to player
OpenGuiWhenNoAvailableItem
: false

Message
:
  No-Available-Item
: '&cYou don''t have any item can be enchanted.'
----------, Jul 16, 2020

Bug Fixed:
- Fixed material npe on 1.16.1 server
- Fixed npe on 1.8 server
- Fixed item still showing in the gui when there's no available enchantment for it
----------, Jun 29, 2020

Bug Fixed:
- Fixed plugin generate wrong file on 1.16.1 server
----------, Jun 25, 2020

Bug Fixed:
- Fixed PermissionForEachEnchantmentLevel is not working properly
----------, Jun 13, 2020

Changes:
- Players can't interact with their inventory item while enchanting to prevent some unexpected issue/glitch happen

Added:
- Added BStats
----------, May 19, 2020

Fixed plugin lag when player spam clicking on the enchanted book
----------, May 1, 2020

EnchantGui v3.1.2

Bug Fixed:
- Fixed some lag issue while placing enchantment table
- Fixed plugin saving other block location which are not enchantment table
----------, Apr 14, 2020

EnchantGui v3.1.1

Bug Fixed:

- Fixed "No value present" error when player is trying to enchant off-hand item/equipped armor
----------, Apr 2, 2020

EnchantGui v3.1.0

Bug Fixed:

- Fixed plugin doesn't work if server has CustonOreGen
- Fixed back button doesn't appear in the Enchantment Selecot GUI

Added:
- Added 2 new placeholders {MONEY_FORMATTED} and {PLAYER_MONEY_FOMATTED}

Changes:
- Recoded both gui class and event
----------, Mar 29, 2020

Bug Fixed:
- Fixed wrong cost when multiple is enabled
- Fixed extreme decimals, it's rounded up to 2 decimals now
----------, Mar 21, 2020

EnchantGui v3.0.7

Bug Fixed:
- Fixed item still showing although its all enchantments have been disabled

Changes:
- Changed some plugin messages to more friendly
----------, Mar 2, 2020

EnchantGui v3.0.6

Bug Fixed:
- Fixed NullPointerException when player who doesn't have permission to use /enchantgui
----------, Feb 27, 2020

EnchantGui v3.0.5

Bug Fixed:
- Fixed another item duplication bug
----------, Feb 14, 2020

EnchantGui v3.0.4

Bug Fixed:

- Fixed unable to change GUI's size
- Fixed visual glitch for 1.8.x server


Added:
- Added alias commands

Note: you have to add this into config.yml
Code (YAML):
# A server restart is required if enable/disable this
alias-commands
:
  enable
: false
  commands
:
   - upgrade
 
----------, Feb 3, 2020

EnchantGui v3.0.3

Bug Fixed:
- Fixed check-update
- Fixed SworldBlockingEvent not working properly

----------, Jan 21, 2020

Fixed some weird bugs and duplication
----------, Dec 29, 2019

Bug Fixed:
- Fixed unable to change gui's name
----------, Dec 17, 2019

What Thing being added into EnchantGui v3.0.0?
- Lapis Currency
- Multiple (explained at here)
- Able to import other plugin's enchantments
[Note: the custom enchantments plugin must register their enchantments into the server to be able to get imported into my plugin
- Added blacklisted-item and blacklisted-enchantment. (In enchantment's config)

Will the old enchantment config work on EnchantGui v3.0.0?
Sorry, the answer is NO. In EnchantGui 3.0.0, I have changed all the enchantment configuration system. Now all enchantments have its config (Example: DAMAGE_ALL.yml, PROTECTION.yml)

EnchantGui Wiki Page: here
----------, Dec 16, 2019

Bug Fixed:
- Sweeping Edge enchantment doesn't work
Note: if plugin doesn't work on 1.8 server, please use 2.3.6 instead of 2.3.10.
----------, Aug 16, 2019

This version may fix the wrong file generation
----------, Aug 11, 2019

Bug Fixed:
- Fixed gui doesn't open when click on enchanting table
- Removed a debug message
----------, Jul 29, 2019

Note: if the plugin generates emtpy EnchantmentSelector.yml, please redownload the plugin. I accidentally uploaded the wrong version just now.

Bug Fixed:
- Fixed "FillItem" cant be disabled
- Fixed item display as AIR if the item is above 1.13 version

Important: To the users who are using this plugin for 1.13+ servers, you have to set the ItemSelector.yml and EnchantmentSelector.yml again. "data" section will be ignored if you are using the plugin for 1.13+ server and and all the materials' names follow 1.13+ naming.
----------, Jul 28, 2019

Bug Fixed:
- Fixed "FillItem" cant be disabled
- Fixed item display as AIR if the item is above 1.13 version

Important: To the users who are using this plugin for 1.13+ servers, you have to set the ItemSelector.yml and EnchantmentSelector.yml again. "data" section will be ignored if you are using the plugin for 1.13+ server and and all the materials' names follow 1.13+ naming.
----------, Jul 28, 2019

Bug Fixed:
- Fixed a NPE
----------, Jul 1, 2019

Bug Fixed:
- Fixed a mistakes code
----------, Jun 25, 2019

Bug Fixed:
- Fixed a duplication glitch if the server is using OldCombatMechanics
----------, Jun 24, 2019

Bug Fixed:
- Fixed fire aspect error
----------, Jun 19, 2019

Bug Fixed:
- Fixed error while creating file. ( some people have this issue )

Changes:
- Changed enchantment name message.
Changed to
----------, Jun 18, 2019

Bug Fixed:
- Fixed a small bug.
----------, May 31, 2019

Note: The plugin works fine for me in versions 1.14 and 1.14.1. If you find any bugs, please inform me
Added:

- Added "CloseInventoryAfterEnchant" in config
Code (YAML):
# If the plugin is not up-to-date, you will get a notification when you join the server.
check-update
: true

Prefix
: '&b&l [&eEnchantGui&b&l ] '

# If enabled, this plugin will override other plugin's command if its the same with this plugin's.
Override-Command
: true

#Player are only allowed to open the "EnchantGui" only if the enchanting table was placed by an admin.
Only-Admin-EnchantTable
: true

CloseInventoryAfterEnchant
: false

# If enabled, the GUI will be closed when player is trying to enchant but they don't have enough money/level.
CloseInventoryWhenNotEnoughCurrency
: true      

# If enabled, player requires every single enchantment permission (such as enchantgui.enchantments.DAMAGE_ALL) to enchant.
# Note: enchantgui.enchantment.ALL to access all the enchantments.
# the permission above only player can access to all enchantments but not level. (If PermissionForEachEnchantmentLevel is enabled).
# If you want to give player the permission that access to all Enchantments and level , give "enchantgui.enchantment.*" permission to them.
PermissionForEachEnchantment
: false

# If enabled, player requires every single enchantments level (such as enchantgui.enchantments.DAMAGE_ALL.<level>) to enchant.
PermissionForEachEnchantmentLevel
: false

Message
:
    Successful-Enchant-Item
: '&cYou have successfully enchanted {ENCHANTMENT } into your {ITEM }'
    Not-Enough-Money
: '&cYou don''t have enough money!'
    Not-Enough-Level
: '&cYou don''t have enough level!'
    No-Enchantment-Permission
: '&cYou don''t have permission to enchant this!'
    No-Enchantment-Level-Permission
: '&cYou don''t have permission to enchant this level!'
    No-Permission
: '&cYou don''t have permission to do this!'
   


Bug Fixed:

- Fixed "no-item-found" is not working.
Code (YAML):

Gui-Settings
:
    no-item-found
:
        material
: PAPER
        quantity
: 1
        data
: 0
        display_name
: '&cOpps!'
        lore
:
       - '&cNo item found inside'
        - '&cyour inventory!'
        slot
: 13
- Fixed some errors appear in console.
----------, May 25, 2019

Bug Fix:
- fixed max level bug
- fixed for WildStacker (item disappeared)
----------, Apr 20, 2019

The version that i updated yesterday should be 2.0 but I think I wrote the wrong version.

In this version I've added "Override-Command" and added back "check-update".

Note: Please add the code below to make sure everything works fine!
Code (YAML):
Override-Command : true
----------, Mar 18, 2019

I have recoded the plugin and I have added a new feature which you can design your own GUI now!

Warning: Please use the new plugin's config instead of using the old one to make sure it works fine!

I also think this version might fix the conflict with Magic plugin. If it still conflicts with Magic plugin, please contact me. Thank you.
----------, Mar 17, 2019

Fixed error for 1.8
----------, Jan 26, 2019

Added a "Next Page" button if enchantable items do not fit in one page
[​IMG]

Code (YAML):
Gui-Settings :

    next-page-item
:
        item
: ARROW
        quantity
: 1
        data
: 0
        display-name
: '&cNext page'
        lore
:
       - ''

   
    previous-page-item
:
        item
: ARROW
        quantity
: 1
        data
: 0
        display-name
: '&cPrevious page'
        lore
:
       - ''
Please add the code above into your config.
----------, Dec 14, 2018

Bug Fixed:
- fixed /enchant command error (ArrayIndexOutOfBoundsException)
- fixed "Only-Admin: true" is not working

Added:
- permission for placing EnchantGui Enchanting Table
permission: enchantgui.enchantingtable
- check update
Code (YAML):
check-update : true
Please add the code above into your config.
----------, Dec 12, 2018

Resource Information
Author:
----------
Total Downloads: 52,239
First Release: Dec 10, 2018
Last Update: Jul 5, 2024
Category: ---------------
All-Time Rating:
73 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings