NightExpress's Plugins Wiki

GUI Configs

All the GUIs are stored in a /gui/ subfolder of the module folder.

To create new GUI, do a copy of existent config and modify it.

# GUI Title
title: '&lWelcome to SunLight GUI'
# GUI size
size: 27
# When true, player must have core.gui.[id] permission to open this GUI.
# Where [id] is GUI file name without the extension.
permission-required: true
# Command aliases to open this GUI.
aliases:
- 'menu'

# GUI Custom Items
content:
  # Item ID-name
  conditions:
    # Item display settings
    display:
      # Display ID-name.
      # Use default name to define default display that will be displayed
      # if there are no other displays, or if player doesn't met the conditions of them.
      default:
        # Display priority. Higher numbers will override.
        priority: 1
        
        # Item settings. Check THIS for options.
        material: 'REDSTONE:0:1'
        name: '&c&lCustom Conditions'
        lore:
        - '&eYou can define &ccustom conditions &eto'
        - '&edisplay or hide specified items in the GUI.'
        - '&eThese conditions can also be used on item click.'
        - '&7'
        - '&eSee, how changes this item, when'
        - '&eyou have &c<100$ &eand when &c>100$&e!'
        - ''
        - '&eNow you have: &c$%vault_eco_balance_formatted%'
        enchanted: true
        
        # Custom Conditions for this display. See Actions Guide
        conditions:
        - '[VAULT_BALANCE] ~amount: <100;'
      custom-1:
        priority: 2
        
        material: 'GLOWSTONE_DUST:0:1'
        name: '&e&lCustom Conditions'
        lore:
        - '&eYou can define &ccustom conditions &eto'
        - '&edisplay or hide specified items in the GUI.'
        - '&eThese conditions can also be used on item click.'
        - '&7'
        - '&eSee, how changes this item, when'
        - '&eyou have &c<100$ &eand when &c>100$&e!'
        - ''
        - '&eNow you have: &c$%vault_eco_balance_formatted%'
        enchanted: true
        conditions:
        - '[VAULT_BALANCE] ~amount: >100;'
        
    # Item slots in GUI.
    slots: '13'
    
    # Click actions.
    clicks:
      # Click Type. Allowed types: LEFT, RIGHT, SHIFT_LEFT, SHIFT_RIGHT, MIDDLE.
      LEFT:
        # Custom Click Actions. See Actions Guide
        actions:
          example:
            target-selectors:
              self:
              - '[SELF]'
            conditions:
              list:
              - '[VAULT_BALANCE] ~amount: >100; ~target: self;'
              actions-on-fail: lower100
            action-executors:
            - '[MESSAGE] ~message: &aYou have more than 100$!; ~target: self;'
          lower100:
            target-selectors:
              self:
              - '[SELF]'
            conditions:
              list:
              - '[VAULT_BALANCE] ~amount: <100; ~target: self;'
              actions-on-fail: null
            action-executors:
            - '[MESSAGE] ~message: &cYou have lower than 100$!; ~target: self;'

Commands and Permissions

Permissions List:

  • core.gui.[id] - Allows to open specified GUI. Where [id] is GUI file name without the extension.

Command Aliases Description Player only Permission(s)
/gui [id]
/gui [id] [player]
- Opens specified GUI. Yes
No
core.cmd.gui
core.cmd.gui.others
Navigation