yonghengguodu
本帖最后由 yonghengguodu 于 2023-6-23 19:52 编辑

zMenuzMenus是一个完整的库存插件。你可以创建你的库存,并将它们与自定义命令联系起来。有了按钮系统,你将能够把你的菜单的自定义推到最大。你需要为每个文件创建一个菜单,你可以将你的文件分类到文件夹里。该插件有一个先进的API,允许其他开发者使用相同的库存配置系统。你可以毫无顾虑地将几个插件的存货联系在一起 这个API的目的是为了有一个统一的配置,以获得更好的用户体验。
文档:docs.zmenu.dev
默认配置
惩罚命令
该插件目前处于测试阶段,你可以在你的服务器上使用它,并在讨论区提出你的意见:discord.groupez.dev
特点:能够创建无限数量的GUI菜单和命令可以在同一目录下创建多个页面
为你的命令提供参数
一个下载配置的市场(WIP)
一个在线库存编辑器(WIP)
开源:https://github.com/Maxlego08/zMenu
先进的API能够为你的每个动作创建无限数量的按钮
高度的可定制性
支持PlaceholderAPI
支持Kyori Adventure迷你消息格式
支持Folia
从其他插件转换:https://www.spigotmc.org/resources/zmenuconvert.110403/
模式

插件的文件:https://docs.zmenu.dev/plugins-filesExample:
#########################################################################################################################################
#
#
#   Sponsor: https://serveur-minecraft-vote.fr/
#   5€ gift code on Minecraft Vote Server : ZMENU (https://serveur-minecraft-vote.fr/utiliser/un/code/cadeau?code=ZMENU)
#
#   This is a default configuration of the plugin. This configuration shows you the different possibilities of the plugin.
#   Before starting the configuration of the plugin, we invite you to read the documentation.
#
#   Documentation: https://docs.zmenu.dev/
#   Discord: https://discord.groupez.dev/
#   Plugin page: https://groupez.dev/resources/zmenu.253
#   Marketplace: https://minecraft-inventory-builder.com/
#
#
#  ******█╗**█╗░░░**█╗******█╗**█╗░░**╗**╗░░░**╗
#  ╚════**║****╗░****║**╔════╝****╗░**║**║░░░**║
#  ░░**█╔═╝**╔****╔**║****█╗░░**╔**╗**║**║░░░**║
#  **╔══╝░░**║╚**╔╝**║**╔══╝░░**║╚****║**║░░░**║
#  ******█╗**║░╚═╝░**║******█╗**║░╚**█║╚******╔╝
#  ╚══════╝╚═╝░░░░░╚═╝╚══════╝╚═╝░░╚══╝░╚═════╝░
#
#
#   Commands and permissions:
#   - /zm » Display the list of commands (aliases: /zmenu) - zmenu.use
#   - /zm open [] [] » Opens the specified inventory - menu.open
#   - /zm reload » Reload configurations - menu.reload
#   - /zm reload config » Reload config.json and messages.yml files - zmenu.reload
#   - /zm reload inventory [] » Reload inventories files - zmenu.reload
#   - /zm reload command [] » Reload commands files - zmenu.reload
#   - /zm version » Show plugin version
#   - /zm convert » Convert other plugin to zMenu - zmenu.convert
#   - / » Open specific file - Custom permission
#
#
#########################################################################################################################################

# Name of the inventory
name: "&7Example"

# Inventory size
size: 54

# Clear inventory
# Allows you to delete the player's inventory on opening and return it on closing
clearInventory: false

# List of buttons
items:
  # Will display an item that has no action on the different slots
  slots:
    isPermanent: true # Allows you to set the button as permanent
    closeInventory: true # Allows you to close the inventory when clicking
    sound: ENTITY_COW_HURT # Sound played during the click
    pitch: 1.5 # Sound pitch
    volume: 0.5 # Sound volume
    item: # Item to be displayed
      # For the material please take the right material according to your version of the game
      # More informations here: https://zmenu.groupez.dev/configurations/informations
      material: GRAY_STAINED_GLASS_PANE
      name: "&e"
    slots: # List of slots to display the button
      - 0-9
      - 18
      - 27
      - 17
      - 26
      - 35
      - 36
      - 44
      - 46
      - 47
      - 49
      - 51-53
  example2:
    type: INVENTORY # Button type
    slot: 45 # Button slot
    isPermanent: true
    inventory: "example2" # Name of the inventory to be opened
    plugin: "zMenu" # You can specify the name of the plugin to be on the right inventory
    item: # Item to be displayed
      material: CHEST
      name: "&fClick to access"
      lore:
        - "&7to another inventory"
  shop:
    type: INVENTORY
    slot: 46
    inventory: "example_shop"
    plugin: "zMenu"
    item:
      material: PAPER
      name: "&fSHOP"           
  testPlaceholderHead:
    slot: 21
    playerHead: "%player%"
    item:
      material: PLAYER_HEAD
      name: "&3%player_name%'s head"
      lore:
        - "&fPlayer name with PAPI eCloud Player"
        - "&7/papi ecloud download Player"
  clickActionExample:
    slot: 23
    closeInventory: true
    messages: # Messages sent to the player when clicking
      - "&8(&6zMenu&8) &fAdd your server to the site &3Serveur Minecraft Vote"
      - "&8(&6zMenu&8) %link% &d!" # The %link% will be replaced by the value in openLink.message
    openLink: # Allows to display a link in the messages sent to the player
      link: "https://serveur-minecraft-vote.fr/utiliser/un/code/cadeau?code=ZMENU" # Link that will be used
      message: "&b&lClick here" # Message to be replaced
      replace: "%link%" # Text to be replaced
      hover: # Messages when the player will hover the text
        - "&bClick here !"
    item:
      material: PLAYER_HEAD
      # Texture of a head in base64
      # Check on https://minecraft-heads.com/
      url: "ewogICJ0aW1lc3RhbXAiIDogMTY1NTEwNjkxNjU3OSwKICAicHJvZmlsZUlkIiA6ICJhM2I2ZjRmOTU2ODg0YWUxYmQzYTBhYzBjY2ZiYmYxZCIsCiAgInByb2ZpbGVOYW1lIiA6ICJNYXhsZWdvMDgiLAogICJzaWduYXR1cmVSZXF1aXJlZCIgOiB0cnVlLAogICJ0ZXh0dXJlcyIgOiB7CiAgICAiU0tJTiIgOiB7CiAgICAgICJ1cmwiIDogImh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjJmNzhiODhlMzBkYjU5MjY1Yzc0YzMwYjc1M2M1N2M0YzVkNzEwM2M5NWFjYWQ4MzJmYjI2OTNiYmFjNmNlMiIKICAgIH0KICB9Cn0="
      name: "Maxlego08's head"
      lore:
        - "&fGo to &b&nhttps://serveur-minecraft-vote.fr/"     
        - "&fClick to access the site and earn &c5€&f credits."
  testPage:
    slot: 13
    page: 2
    closeInventory: true
    # Commands sent when clicked
    consoleCommands:
      - "bc %player% is too beautiful"
    consoleLeftCommands:
      - "bc The left click"
    consoleRightCommands:
      - "bc The right click"
    item:
      material: DIAMOND
      name: "&fI am on page 2"
    messages:
      - "&8(&6Groupe&fZ&8) &7You have just clicked on a button"
  testPage2:
    slot: "2-22" # Shows the button on page 2 and slot 22
    item:
      material: BOOK
      name: "&3Example 2"
  next:
    type: NEXT
    isPermanent: true
    slot: 50
    item:
      material: ARROW
      name: "&fNext"
    else: #Displays another button if there is no next page.
      slot: 50
      type: NONE
      isPermanent: true
      item:
        material: GRAY_STAINED_GLASS_PANE
        name: "&aNop"
  previous:
    type: PREVIOUS
    isPermanent: true
    slot: 48
    item:
      material: ARROW
      name: "&fPrevious"
    else: #Displays another button if there is no previous page.
      slot: 48
      type: NONE
      isPermanent: true
      item:
        material: GRAY_STAINED_GLASS_PANE
        name: "&aNop"
  # Example of a button that will use the placeholder permissions system and that will use several else button
  testPlaceHolder:
    slot: 40
    item:
      material: IRON_INGOT
      name: "&fYES"
    placeHolder: "%player_level%"
    action: LOWER_OR_EQUAL
    value: 5
    else:
      type: NONE
      slot: 40
      item:
        material: GOLD_INGOT
        name: "&3YES"
      placeHolder: "%player_level%"
      action: LOWER_OR_EQUAL
      value: 10
      else:
        type: NONE
        slot: 40
        item:
          material: DIAMOND
          name: "&dYES"复制代码


最后就是搬运授权

第一页 上一页 下一页 最后一页