๐ ๏ธ In-Game Unlock editor
Admins can directly modify unlock requirements for specific items from within the game using an intuitive GUI system.
๐ฎ How It Works
-
The admin uses the command:
/pu configure
(Requires permission:
progressiveunlock.configure
) -
While in admin mode, the player clicks any item in their inventory.
-
An Item Info menu appears:
- If the item is already configured, it shows its unlock level or pack.
- If not, a Configurate button appears.
-
Clicking Configurate opens a Level Selection menu.
-
After selecting the level, the admin chooses:
- "Save as material only" โ only the item's material is saved to
xpmode.yml
. - "Save as variant" โ name and lore are also saved to
customItems.yml
.
- "Save as material only" โ only the item's material is saved to
๐ง Smart Behavior
-
When saving as material only, the plugin checks if the item already exists in that level (including expanded variables via
VARIABLE_MAP
).
If it does, an error message is shown and the item is not saved. -
Prevents item duplication by cancelling the click event and clearing the cursor (no ghost items).
-
No items are moved in the inventory โ everything is cloned and displayed safely.
๐ Permissions
Command | Description | Permission |
---|---|---|
/pu configure |
Enables in-game unlock editing mode | progressiveunlock.configure |
โ Benefits
- โ๏ธ No need to manually edit
.yml
files - โ๏ธ Visual and intuitive interface
- โ๏ธ Prevents duplicates and invalid entries
- โ๏ธ Fully managed through in-game GUI