Bukkit yaml检查员

时间:2015-12-25 22:48:49

标签: yaml bukkit

继承我的代码,当我把它放在yaml检查器中时,它说其中一个映射值出了问题。注意:我把地址拿出来,因为它们非常机密,不应该影响任何东西。)

groups:
  md_5:
  - admin
disabled_commands:
- disabledcommandhere
player_limit: -1
stats: 34cce1fc-17ab-4156-bb9a-a1c06151137d
permissions:
  default:
  - bungeecord.command.server
  - bungeecord.command.list
  admin:
  - bungeecord.command.alert
  - bungeecord.command.end
  - bungeecord.command.ip
  - bungeecord.command.reload
listeners:
- max_players: -1
  fallback_server: hub
  host: 0.0.0.0:25577
  bind_local_address: true
  ping_passthrough: false
  tab_list: GLOBAL_PING
  default_server: hub
  forced_hosts: 
    pvp.md-5.net: pvp
  tab_size: 60
  force_default_server: false
  motd: '&1Another Bungee server'
  query_enabled: false
  query_port: 25577
timeout: 30000
connection_throttle: 4000
servers:
  Hub:
    address: 198.50.128.131:25565
    restricted: false
    motd: '&1&l>&d&l>&r&b&lWelcome to &6&l&NFooseNetwork&1&l<&d&L<'
ip_forward: false
online_mode: true
  Skyblock:
    address: 198.50.128.133:25565
    restricted: false
    motd: ''
ip_forward: false
online_mode: true 
  Factions:
    address: 198.50.128.143:25565
    motd: ''
ip_forward: false
online_mode: true

1 个答案:

答案 0 :(得分:0)

问题在于:

online_mode: true
  Skyblock:
    address: 198.50.128.133:25565
    restricted: false
    motd: ''

Skyblock键开头的映射在online_mode键下缩进,这将使其成为该键的值,但该键已具有值true。< / p>

几行之后你有第二个online_mode密钥重复密钥是不允许的,虽然并非所有的解析器都对此严格 - 你用Factions重复上述相同的错误。

我不确定,但我认为你想要的是这样的:

servers:
  Hub:
    address: 198.50.128.131:25565
    restricted: false
    motd: '&1&l>&d&l>&r&b&lWelcome to &6&l&NFooseNetwork&1&l<&d&L<'
    ip_forward: false
    online_mode: true
  Skyblock:
    address: 198.50.128.133:25565
    restricted: false
    motd: ''
    ip_forward: false
    online_mode: true 
  Factions:
    address: 198.50.128.143:25565
    motd: ''
    ip_forward: false
    online_mode: true

此处servers键的值是包含三个键(HubSkyblockFactions)的映射,其中每个键的值都是映射。