Menu items premium - ServerSelectorX/ServerSelectorX GitHub Wiki

THIS WIKI PAGE IS OUTDATED GO HERE: https://github.com/ServerSelectorX/ServerSelectorX/wiki/Menu-items-v2

Menu items have a different structure depending on whether their (first) action is srv or something else.

Server items

Server items have an online and offline section, like this:

  10:
    action: 'srv:prison'
    online:
      item: IRON_FENCE
      name: '&7Prison Server'
      lore:
       - '&7Click to Join'
    offline:
      item: WOOL
      data: 14
      name: '&cPrison Server'
      lore:
       - 'The server is offline'

For information about the dynamic section, see Dynamic items

Other items

Other items have no sections, like this:

  10:
    action: 'cmd:say Hello'
    item: IRON_FENCE
    name: '&7Hello'
    lore:
     - '&7Click to say hello'

Options list

Section type means that the option has to be in an offline or online section. Global type means that it needs to be outside of the online and offline sections. For non-server items all options are global.

Option name Type Value Required Notes
action global string or string list Required What happens when a player clicks on the item. See also: Actions
item-count global integer (1-64) Optional (default: 1) Number of items
hide-flags global boolean Optional (default: false) Hide flags (e.g. attack damage and enchantments)
dynamic-item-count global boolean Optional (default: false) Automatically update the item count with the player count. When enabled, item-count will be ignored.
item section material Required
data section int (0-15) Optional (default: 0)
enchanted section boolean Optional (default: false) Not very reliable on versions below 2.0.0-rc3
name section string Required
lore section string list Required