1.15.2 DeluxeMenu/DeluxeHub

Discussion in 'Spigot Plugin Development' started by heloman, Jan 26, 2020.

  1. (My english is bad,sry)
    As you can see,i have DeluxeHub and DeluxeMenus plugin. In DeluxeHub,CustomJoinItems are set like infobook,and you see,when u press right click on that item message will show up "Type /menu..."
    And,when you type /menu,DeluxeMenu GUI Named Menu will show up.
    I need help,i wanna make it so when you press Right Click it auto opens MenuGUI,and no command needed.
    PLEASE HELP

    DeluxeHub
    Custom_Join_Items:
    # Should custom join items be enabled? (This does not affect the Server Selector and Player Hider items, see provided sections)
    Enabled: true
    # Should we prevent them from moving/dropping the items?
    Disable_Inventory_Movement: true

    Items:
    infobook:
    Item: BOOK
    Amount: 1
    Slot: 0
    Name: '&dMenu &7(Right-Click)'
    Lore:
    - '&7Right-click to see information about the server!'
    Actions:
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'
    - '[message] &7&lType &6&l/menu &7&lto open Main Menu!'

    DeluxeMenus
    Menu:
    menu_title: '&8&lMenu'
    open_command: menu
    size: 54
    open_requirement:
    requirements:
    permission:
    type: has permission
    permission: some.permission
    deny_commands:
    - '[message] You dont have permission to open the example menu'
    items:
    '1':
    material: NETHER_STAR
    slot: 10
    display_name: '&2&lServerSelector'
    lore:
    - '&7Click to open'
    left_click_commands:
    - '[player] sselector'
    right_click_commands:
    - '[player] sselector'
    '2':
    material: PLAYER_HEAD
    data: 0
    amount: 1
    slot: 13
    priority: 2
    view_requirement:
    requirements:
    permission:
    type: has permission
    permission: some.permission
    display_name: '&2&lPlayer&7&lInfo'
    lore:
    - '&7Click to see your info!'
    left_click_commands:
    - '[player] playerinfo'
    right_click_commands:
    - '[player] playerinfo'
    '3':
    material: BOOK
    data: 2
    amount: 1
    slot: 16
    priority: 3
    view_requirement:
    requirements:
    permission:
    type: has permission
    permission: some.permission
    display_name: '&b&lGadgets&7&lMenu'
    lore:
    - '&7Click to open Gadgets Menu!'
    left_click_commands:
    - '[player] gadgetsmenu menu main 1'
    right_click_commands:
    - '[player] gadgetsmenu menu main 1'
    '4':
    material: RED_STAINED_GLASS
    amount: 1
    slot: 31
    priority: 4
    view_requirement:
    requirements:
    permission:
    type: has permission
    permission: some.permission
    display_name: '&4Close Menu'
    lore:
    - '&7Click to close menu!'
    left_click_commands:
    - '[close]'
    right_click_commands:
    - '[close]'
     
  2. I just threw up in my mouth trying to read whatever you posted. Please use the Code tag. Also, if you need help with a specific plugin, you need to use this forum: https://www.spigotmc.org/forums/spigot-plugin-help.42/ . This forum is for people trying to program a plugin.