Bukkit不接受良好的YAML代码

时间:2012-08-10 13:16:06

标签: yaml bukkit

所以我有我为PermissionsBukkit 1.6。

制作的YAML代码

但是停止使用新的Minecraft更新。 Online YAML Parser无法找到任何问题。

users:
Grace:
    permissions:
        permissions.example: true
    groups:
    - user
cracksmacker141:
    permissions:
        permissions.example: true
    groups:
    - user
msymons:
    permissions:
        permissions.example: true
    groups:
    - default
chris:
    permissions:
        permissions.example: true
    groups:
    - user
humptyP:
    permissions:
    groups:
    - admin
Msaltafosso:
    permissions:
        permissions.example: true
        jcommands.clear: true
    groups:
    - admin
SgtCookie23:
    permissions:
        permissions.example: true
        war.zonemaker: true
        war.player: true
        jcommands.back: true
    groups:
    - admin
Binglee2323:
    permissions:
        permissions.example: true
    groups:
    - admin
Bscott:
    permissions:
        permissions.example: true
    groups:
    - user
Mac:
    permissions:
        permissions.example: true
    groups:
    - user
Cole:
    permissions:
        permissions.example: true
        BlockControl.lava: true
        BlockControl.fire: true
    groups:
    - mod
Dan:
    permissions:
        permissions.example: true
    groups:
    - user
dr_michael4:
    permissions:
        permissions.example: true
    groups:
    - user
Dunny:
    permissions:
        permissions.example: true
    groups:
    - user
fnaty:
    permissions:
    permissions.example: true
    groups:
    - user
doldfield:
    permissions:
        permissions.example: true
    groups:
    - user
Gunpowderjr:
    permissions:
        permissions.example: true
    groups:
    - user
mwa_haha:
    permissions:
        jcommands.gamemode: true
        jcommands.day: true
        jcommands.night: true
        jcommands.sun: true
        jcommands.storm: true
        permissions.example: true
    groups:
    - user
Sweet_Lemonade2:
    permissions:
        permissions.example: true
    groups:
    - user
tdrive:
    permissions:
        permissions.example: true
    groups:
    - user
Tppskid:
    permissions:
        permissions.example: true
    groups:
    - mod
Tswizzle:
    permissions:
        permissions.example:true
    groups:
    - user
mypettr0ll:
    permissions:
        permissions.example:true
    groups:
    - user
confessor:
    groups:
    - user
l3thalxpredator:
    groups:
    - user
l3thalxshredder:
    groups:
    - user
wack-a-mole:
    groups:
    - User
Jaffa117:
    groups:
    - User
jmz01:
    groups:
    - user
groups:
    default:
        permissions:
            permissions.build: false
    mod:
        permissions:
            jcommands.spawn:true
            jcommands.setspawn:true
            war.zonemaker:true
            war.player:true
            jcommands.back:true
            jcommands.day:true
            jcommands.night:true
            jcommands.sun:true
            jcommands.tp:true
            jcommands.tphere:true
            jcommands.kick:true
            permissions.build:true
            simpleprefix.admin:true
            jcommands.kill:true
            jcommands.tp2p:true
            jcommands.storm:true
            jcommands.ram:true
            jcommands.ping:true
            jcommands.gamemode:true
            jcommands.broadcast:true
    admin:
        permissions:
            jcommands.afk:true
            jcommands.spawn:true
            jcommands.setspawn:true
            jcommands.mute:true
            jcommands.heal:true
            jcommands.gamemode:true
            permissions.build:true
            simpleprefix.admin:true
            jcommands.tp2p:true
            jcommands.storm:true
            jcommands.ram:true
            jcommands.ping:true
            jcommands.invisible:true
            jcommands.ip:true
        inheritance:
        - mod
    user:
        permissions:
            jcommands.afk:true
            permissions.build:true
            jcommands.home:true
            jcommands.spawn:true
            jcommands.sethome:true
            lockette.user.create.*:true
            jcommands.ram:true
            jcommands.ping:true
messages:
    build: '&cUser Error.'

3 个答案:

答案 0 :(得分:2)

务必检查所有缩进。

对于用户fnaty,权限未正确缩进。

fnaty:
    permissions:
    permissions.example: true  <-- This line should be indented.
    groups:
    - user

应该是这样的:

fnaty:
    permissions:
        permissions.example: true
    groups:
    - user

对于用户humptyP,您的权限值为null。虽然这对YAML来说是可以接受的,但Bukkit往往不喜欢这种做法,可能会出错。

humptyP:
    permissions:  <-- Add a permission or remove this line.
    groups:
    - admin

答案 1 :(得分:0)

users:下的所有内容都应缩进一次。目前,用户没有孩子。

答案 2 :(得分:0)

确保您已正确缩进所有内容。如果您使用制表符表示某些内容和空格,那么它将无效。此外,使用一个组和一个用户重新创建一个较小的文件,看看是否可以使其正常工作。