Wizards ❱ Domination | CTF | TDM | icon

Wizards ❱ Domination | CTF | TDM | -----

Domination, CTF & TDM | Leaderboards | Classes or Kits | Special Effects/Systems | Mounts |



Player Inventory Customization
  • Some fixes and changes I'm sorry I don't remember them all, my PC just exploded and my Git history is between 3 branches, this feature has been in testing for ages. Updating is recommended.

Players can now change the Inventory Layout for when the game starts.

This feature only work for Kits at the moment. Classes support is planned.

If you do not care about this feature you can stop here, just update the plugin, everything below is set to false by default, nothing will break. However, a new database table will be created.


First of all, if you wish to use the feature, it can be kinda complex to setup, please read everything below.

  • Set Inventory-Layout-Editor.Enabled to true to enable the feature
  • Enable-Preview-Button - This will make so the layout editor icon will show in the preview menu
    • [​IMG]
  • Store-As-Text: THIS IS VERY IMPORTANT! You can choose between deserializing the ItemData or just transform the kit data to look like the values from the items that you can configure (like kit items and such)

    • Must be true for SQLite
    • If you are not on SQLite however, you can set it to false, this can generate a very long string for each kit but it will work in all conditions.
  • Storage-Separator: THIS IS VERY IMPORTANT! For Storing-As-Text, this will be the separator between a Item and another, for example: "DIAMOND:1;DIAMOND:2;". You can set this to any value, some values will work and others not, you need to test this yourself.

    • Note that using a value that your kit is already using in a Lore for example will break things! So if you lore has a " ; ", it will break. Disable Store-As-Text or try to find a value that will work for you the best.
      • For example, NBT, if you are using NBT items change to another value.
    • The value can be any String, from a text to a sequence of characters, for example using ,;, should work without breaking stuff, so you can do that if you need.
  • Reset-Cooldown: The cooldown fo the reset data item.
Here's an example of it working:
[​IMG]

[​IMG]

Config:
[​IMG]
Store-As-Text, database value:
[​IMG]

Commands:
/wizards clearLayoutData <kit>
Clears the kit data for all players
Permission: wizards.admin

/wizards layout <kit>
Opens the layout editor, all players can execute this, as long as they have the kit

As always, every message is customizable, please check

Messages.Custom-Inventories. to see all messages
----------, Aug 18, 2023
Resource Information
Author:
----------
Total Downloads: 135
First Release: Jul 7, 2018
Last Update: Dec 16, 2024
Category: ---------------
All-Time Rating:
20 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings