本帖最后由 ZG_Jackie 于 2016-12-29 21:32 编辑

UltraMenu


一、紧急通知


作者:当在更新7.2+版本时请先删除"plugins/UltraMenu"文件夹!


二、插件特性




↑首先上图

·专业的Ping菜单
·正常的Ping菜单
·多重菜单
·支持PlaceholderAPI
·动态物品描述
·动态物品名称
·动态菜单标题
·支持PvPStats
·菜单自动更新
·支持TNTRun
·支持BedWarsRel
·万物皆可编辑(滑稽)



三、命令


  • /ultramenu - 查看帮助
  • /ultramenu reload - 重新加载所有的配置和菜单
  • /ultramenu open professional file_name.yml - 显示专业菜单
  • /ultramenu open normal file_name.yml - 显示正常菜单
[size=14.6667px]并说一下权限

  • ultramenu.cmd.admin - 对/ultramenu/ultramenu reload的权限
  • ultramenu.cmd.open.professional - 对 /ultramenu open professional file_name.yml的权限
  • ultramenu.cmd.open.normal - 对/ultramenu open normal file_name.yml的权限



四、配置


1.主配置
  1. join_message: '&7You joined to &e{SERVER}'
  2. update_menu: 15
  3. update_ping: 3
  4. no_permissions: '&cYou dont have permissions!'
  5. no_exist: '&cThis menu is not exist!'
  6. groups:
  7.   enabled: false
  8.   update_ping_time: 3
  9.   list:
  10.     example:
  11.       arena_1: your_ip.com:25565
  12.       arena_2: your_ip.com:25566
  13. debug: false
复制代码

2.专业菜单配置
  1. menu_name:
  2.   - "&eSelect"
  3.   - "&bGame"
  4. run_command: games
  5. menu_size: 27
  6. run_permission: none
  7. BedWars-1:
  8.   slot: 1
  9.   ip: 'your_ip.com'
  10.   port: 25565
  11.   join_msg_enabled: true
  12.   pinging: true
  13.   item_amout: '{ONLINE}'
  14.   commands:
  15.     - "close_inventory: true"
  16.     - "send_server: BedWars-1"
  17.   loading:
  18.     id: 35
  19.     data: 5
  20.     name:
  21.       - '&aBedWars-1'
  22.       - '&bBedWars-1'
  23.       - '&dBedWars-1'
  24.     lore:
  25.       Lore_1:
  26.         - '&r '
  27.         - '&aLoading...'
  28.         - '&r '
  29.       Lore_2:
  30.         - '&r '
  31.         - '&eLoading...'
  32.         - '&r '
  33.       Lore_3:
  34.         - '&r '
  35.         - '&bLoading...'
  36.         - '&r '
  37.   offline:
  38.     id: 35
  39.     data: 14
  40.     name:
  41.       - '&cBedWars-1'
  42.       - '&eBedWars-1'
  43.       - '&6BedWars-1'
  44.     lore:
  45.       Lore_1:
  46.         - '&r '
  47.         - '&cRestarting...'
  48.         - '&r '
  49.       Lore_2:
  50.         - '&r '
  51.         - '&eRestarting...'
  52.         - '&r '
  53.       Lore_3:
  54.         - '&r '
  55.         - '&6Restarting...'
  56.         - '&r '
  57. No-Ping-Item-Example:
  58.   slot: 2
  59.   ip: 'your_ip.com'
  60.   port: 25565
  61.   join_msg_enabled: false
  62.   pinging: false
  63.   item_amout: '0'
  64.   commands:
  65.     - "none"
  66.   loading:
  67.     id: 35
  68.     data: 5
  69.     name:
  70.       - '&r'
  71.     lore: none
  72.   offline:
  73.     id: 160
  74.     data: 15
  75.     name:
  76.       - '&cNo-Ping-Example'
  77.       - '&aNo-Ping-Example'
  78.     lore:
  79.       Lore_1:
  80.         - '&r '
  81.         - '&cThis is example no ping item...'
  82.         - '&r '
  83.       Lore_2:
  84.         - '&r '
  85.         - '&eThis is example no ping item...'
  86.         - '&r '
复制代码

3.正常菜单配置
  1. menu_name:
  2.   - "&aSelect"
  3.   - "&cServer"
  4. menu_size: 9
  5. run_command: servers
  6. run_permission: none
  7. Server-1:
  8.   slot: 1
  9.   ip: you_ip.com
  10.   port: 25565
  11.   pinging: true
  12.   join_msg_enabled: true
  13.   item_amout: '{ONLINE}'
  14.   commands:
  15.     - "close_inventory: true"
  16.     - "send_server: Server-1"
  17.   online:
  18.     name:
  19.       - '&aS'
  20.       - '&aSe'
  21.       - '&aSer'
  22.       - '&aServ'
  23.       - '&aServe'
  24.       - '&aServer'
  25.       - '&aServer-'
  26.       - '&aServer-1'
  27.     id: 35
  28.     data: 5
  29.     lore:
  30.       lore_1:
  31.         - '&r '
  32.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  33.         - '&7Motd: &c{MOTD}'
  34.         - '&r'
  35.         - '&aServer is online!'
  36.       lore_2:
  37.         - '&r '
  38.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  39.         - '&7Motd: &c{MOTD}'
  40.         - '&r'
  41.         - '&bServer is online!'
  42.       lore_3:
  43.         - '&r '
  44.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  45.         - '&7Motd: &c{MOTD}'
  46.         - '&r'
  47.         - '&dServer is online!'
  48.   full:
  49.     name:
  50.       - '&eS'
  51.       - '&eSe'
  52.       - '&eSer'
  53.       - '&eServ'
  54.       - '&eServe'
  55.       - '&eServer'
  56.       - '&eServer-'
  57.       - '&eServer-1'
  58.     id: 35
  59.     data: 1
  60.     lore:
  61.       lore_1:
  62.         - '&r '
  63.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  64.         - '&7Motd: &c{MOTD}'
  65.         - '&r'
  66.         - '&eServer is full!'
  67.       lore_2:
  68.         - '&r '
  69.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  70.         - '&7Motd: &c{MOTD}'
  71.         - '&r'
  72.         - '&6Server is full!'
  73.       lore_3:
  74.         - '&r '
  75.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  76.         - '&7Motd: &c{MOTD}'
  77.         - '&r'
  78.         - '&cServer is full!'
  79.   offline:
  80.     name:
  81.       - '&cS'
  82.       - '&cSe'
  83.       - '&cSer'
  84.       - '&cServ'
  85.       - '&cServe'
  86.       - '&cServer'
  87.       - '&cServer-'
  88.       - '&cServer-1'
  89.     id: 35
  90.     data: 14
  91.     lore:
  92.       lore_1:
  93.         - '&r '
  94.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  95.         - '&7Motd: &c{MOTD}'
  96.         - '&r'
  97.         - '&cServer is offline!'
  98.       lore_2:
  99.         - '&r '
  100.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  101.         - '&7Motd: &c{MOTD}'
  102.         - '&r'
  103.         - '&6Server is offline!'
  104.       lore_3:
  105.         - '&r '
  106.         - '&7Online: &e{ONLINE}&7/&c{MAX_PLAYERS}'
  107.         - '&7Motd: &c{MOTD}'
  108.         - '&r'
  109.         - '&4Server is offline!'
  110. No-Ping-Item-Example:
  111.   slot: 2
  112.   ip: 'your_ip.com'
  113.   port: 25565
  114.   join_msg_enabled: false
  115.   pinging: false
  116.   item_amout: '0'
  117.   commands:
  118.     - "none"
  119.   online:
  120.     id: 1
  121.     data: 0
  122.     name:
  123.       - '&r'
  124.     lore: none
  125.   full:
  126.     id: 1
  127.     data: 0
  128.     name:
  129.       - '&r'
  130.     lore: none
  131.   offline:
  132.     id: 160
  133.     data: 15
  134.     name:
  135.       - '&cNo-Ping-Example'
  136.       - '&aNo-Ping-Example'
  137.     lore:
  138.       Lore_1:
  139.         - '&r '
  140.         - '&cThis is example no ping item...'
  141.         - '&r '
  142.       Lore_2:
  143.         - '&7Test example characters:'
  144.         - '&r '
  145.         - '&7Yes: &a[YES]'
  146.         - '&7No: &c[NO]'
  147.         - '&7Block: &9[X]'
  148.         - '&7Hearth: &c[<3]'
  149.         - '&7Arrow Up: &b[ARROW_UP]'
  150.         - '&7Arrow Down: &b[ARROW_DOWN]'
  151.         - '&7Arrow Left: &b[ARROW_LEFT]'
  152.         - '&7Arrow Right: &b[ARROW_RIGHT]'
  153.         - '&7Note: &6[NOTE]'
  154.         - '&7Star: &f[STAR]'
  155.       Lore_3:
  156.         - '&7Your name: &a{PLAYER}'
  157.         - '&7Your display name: &a{PLAYER_DISPLAY_NAME}'
  158.         - '&7Your level: &a{PLAYER_LEVEL}'
  159.         - '&7Your health: &a{PLAYER_HEALTH}'
  160.         - '&7Your food level: &a{PLAYER_FOOD_LEVEL}'
  161.         - '&7Your fly speed: &a{PLAYER_FLY_SPEED}'
  162.         - '&7Your walk speed: &a{PLAYER_WALK_SPEED}'
  163.         - '&7Your exp: &a{PLAYER_EXP}'
  164.         - '&7Your location: X: &a{PLAYER_LOC_X}&7 Y: &a{PLAYER_LOC_Y}&7 Z: &a{PLAYER_LOC_Z}&7 PITCH: &a{PLAYER_LOC_PITCH}&7 YAW: &a{PLAYER_LOC_YAW}'
  165.         - '&7Your world: &a{PLAYER_LOC_WORLD}'
  166.         - '&7Your ip address: &a{PLAYER_IP_ADDRESS}'
  167.         - '&7Your gamemode: &a{PLAYER_GAMEMODE}'
  168.         - '&7Your uuid: &a{PLAYER_UUID}'
  169.         - '&7Your ping: &a{PLAYER_PING}ms'
复制代码


五、装载专业菜单的具体教程


1.首先你得有一个主服务器还有子服务器
2.打开子服务器的server.xxxx,在"motd"选项中填入一下格式:
物品ID#物品数据#物品描述


3.这里有个梨子:"35#1#&aLobby%newline%&7Players: &e%online%&8/&c%max%"

4.结果:


一些变量:
%online% - 在线玩家
%max% - 玩家上线
%newline% - 换行
4.在"/plugins/UltraMenu/ProfessionalMenu/"<name_menu>.yml创建文件

作者对专业菜单配置文件的解释


●"commands"中可填选项:

    send_server: xxx_berver - 将玩家传送至xxx_berver服务器

    console_command: example_cmd - 在后台执行example_cmd命令

    player_command: spawn - 让玩家执行spawn命令

    send_messahe: &aThis is a text! - 给玩家发送信息

    close_inventory: true - 关闭菜单

    open_menu_professional: file_name.yml - 打开file_name.yml里的菜单

    open_menu_normal: file_name.yml - 懒

●对于物品名称与Lore的Ping变量:
    分组变量:
        {GRUOP_ONLINE_PLAYERS_Gruop_Name} - 显示Group_Name组里有多少在线玩家
        {GRUOP_MAX_PLAYERS_Gruop_Name} - 显示Group_Name组里总共有多少玩家
        {GRUOP_Gruop_Name_ARENA_ONLINE_PLAYERS_Arena_Name} - 显示Arena_Name场地内有多少Group_Name的在线玩家      
        (P.S.组在主配置里)
        截图:
         
●PlaceholderAPI
●对于"item_amount"的变量
       {ONLINE} - 显示在线玩家
  • {MAX_PLAYERS} - 显示玩家上线
  • 分组变量:
    • {GROUP_ONLINE_PLAYERS_Group_Name} - 见上
    • {GROUP_MAX_PLAYERS_Group_Name} - 见上
    • {GROUP_Group_Name_ARENA_ONLINE_PLAYERS_Arena_Name} - 见上
    • {GROUP_Group_Name_ARENA_MAX_PLAYERS_Arena_Name} - 见上

[size=14.6667px]5.保存并重新加载,就ok了



[size=14.6667px]注意:正常菜单与专业菜单的配置方式完全一样



六、其他变量


TNTRun:
{TNTRUN_DESTROYED_BLOCKS} - 显示你摧毁了多少方块
{TNTRUN_WINS} - 显示你赢了多少局
{TNTRUN_LOSSES} - 显示你输了多少局

BedWarsRel:
{BW_KILLS} - 显示你击杀了多少人
{BW_DEATHS} - 显示你死了多少次
{BW_WINS} - 显示你赢了多少次
{BW_LOSSES} - 显示你输了多少次
{BW_PLAYED_GAMES} - 显示你玩了多少次
{BW_SCORE} - 显示你的分数
{BW_KD} - 显示你的K/D
{BW_DESTROYED_BEDS} - 显示你摧毁了多少床

↓你们别摆阵型了行不版主都有意见了