2014-05-12 82 views
-2

我有一个bukkit插件一个plugin.yml文件:这个yaml文件有什么问题?

name: SlayCraft 
version: 1.0.0 
main: src.john01dav.slaycraft.SlayCraft 

commands: 
    scsetspawn: 
    permission: slaycraft.setspawn 
    description: Sets the SlayCraft spawn point to where you are standing 
    usage: /scsetsapwn <arena/lobby> 
    scjoin: 
    permission: slaycraft.join 
    description: Joins the SlayCraft game 
    usage: /scjoin 
    scfirework: 
    permission: slaycraft.firework 
    description: Launches a firework at the player's location 
    usage: /scfirework 
    scexplosion: 
    permission: slaycraft.explosion: 
    description: Launches an explosion at the player's location 
    usage: /scexplosion 

permissions: 
    slaycraft.setspawn: 
    default: op 
    slaycraft.join: 
    default: true 
    slaycraft.firework: 
    default: op 
    slaycraft.explosion: 
    default: op 

这YAML看起来完全没有我,但there are errors。有任何想法吗?我搜寻了有类似错误的人,但他们中没有一个似乎可以解释。

+0

'权限:slaycraft.explosion:'末尾有一个不需要的冒号。 –

回答

3

的错误是非常具体:

ERROR: 

mapping values are not allowed here 
    in "<unicode string>", line 19, column 36: 
     permission: slaycraft.explosion: 
            ^

你必须在这条线一个额外的冒号:

permission: slaycraft.firework 
    description: Launches a firework at the player's location 
    usage: /scfirework 
    scexplosion: 
    permission: slaycraft.explosion: #<-- This colon is not needed. 
    description: Launches an explosion at the player's location 
    usage: /scexplosion 

删除它。