# Kit Layout Editor

Players can edit the slots of their items when the game starts.  To open the kit editor they can click the layout editor item on the Kit's Preview Menu or use the command /wizards layout \<kit>.

Please note that there's no way for the plugin to check if you changed the kit item, so players may still able to use the items from before the changes. To fix this, for each time you modify a kit you can clear you can use the command **/wizards clearLayoutData \<kit>.** Requires permission **wizards.admin.**



In options.yml you'll see the following options:

```yaml
Inventory-Layout-Editor:
  Enabled: 'true'
  Enable-Preview-Button: 'true'
  Store-As-Text: 'true'
  Storage-Separator: ;
  Reset-Cooldown: '30000'
  Items:
    Preview-Customization: 'CHEST : 1 : name:&7Click to Customize! : lore:&7You can
      rearrange the items.'
    Filler: 'BLACK_STAINED_GLASS_PANE : 1 : name:&8All items below are in the hotbar.'
  Icons:
    Save-Icon:
      Item: 'CHEST : 1 : name:&aSave Changes'
      Slot: '49'
    Go-Back:
      Enabled: 'true'
      Item: 'ARROW : 1 : name:&7Go back'
      Slot: '48'
    Reset:
      Enabled: 'true'
      Item: 'TNT : 1 : name:&cReset'
      Slot: '50'
  Priority-Hotbar: 'true'
```



A few important settings

**Store-As-Text**

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 as SQLite cannot store the correct data type
* 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**

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.&#x20;

* 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.

**Priority Hotbar**

If set to false the items will be placed in the inventory row order.



<figure><img src="https://4293080539-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrTV6pKptRagG0E9N0EQ%2Fuploads%2FhLAh2HMyi4gwUCpG8cpw%2F7943b97101a429f0a48691151da384a8067493ea.png?alt=media&#x26;token=6c9b4014-b851-421f-8c85-f6129e253e26" alt=""><figcaption></figcaption></figure>
