Tab Setup - smellyonionman/smellycraft GitHub Wiki

Each Tab in the menu system is a task file located within /plugins/Denizen/scripts/tabs/.
As with all scripts, remember to give the container a unique name. Script is irrelevant at this time.

For a complete list of possible keys please see the main TabWorks page. The task script may contain as many Tabs as you wish, provided they adhere to the following structure:

sc_tw_options:
  # This section is irrelevant, but can not be removed
  type: task
  debug: false
  script:
   - stop

  # Here is where we store YAML data for the Tabs.  Each Tab script needs a 'tabs' key.
  tabs:

    # Here is an Options tab with two items.
    options:

      # Title shown in GUI for this tab
      title: '         &2&lOptions Menu'

      # Icon data for Tab list
      icon: repeater
      display: '&aOptions'
      lore:
      - '&9Smellycraft has many'
      - '&9customizable options'

      # List of items to show in menu
      items:

        # A basic PVP switcher
        pvp:

          # If the player has any of these permissions, they can use the item
          permissions:
          - group.players

          # Icon data for the item
          icon: diamond_sword
          display: '&aToggle PVP'
          lore:
          - '&9PvP can be disabled in Legitimus,'
          - '&9where your gear can not be looted.'
          - '&6/pvp'

          # A Denizen tag - if true, the icon glows
          glow: '<yaml[sc_<player.uuid>].read[misc.pvpstate]>'

          # Which command the player will issue on click - you can add "silent" as a final argument to suppress output
          pcommand: pvp

        # Other items will follow.  The list size limited only by server performance.
        sit:
          permissions:
          - group.players
          icon: oak_stairs
          display: '&aSit down'
          lore:
          - '&9Have a seat anywhere you like!.'
          - '&6/sit'
          glow: false
          pcommand: sit silent