0

所以我有我为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.'
4

3 回答 3

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
于 2012-09-24T22:25:29.510 回答
0

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

于 2012-08-10T13:20:06.427 回答
0

确保您正确缩进了所有内容。如果您将制表符用于某些事物而将空格用于其他事物,则它将不起作用。另外,用一组和一个用户重新制作一个较小的文件,看看你是否可以让它工作。

于 2014-12-29T03:06:04.410 回答