mapping values are not allowed here?!?Help Please :)

Discussion in 'Plugin Development' started by dead4y, Feb 25, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    dead4y

    Hello Everyone!
    I just start to make plugins and i got very strange error. http://pastebin.com/HxJzkKaR <-- Here is my error.
    I just cant figure out.
    Code:
    main:org.bukkit.main
    name:SimplePl
    version:1.0
    commands:
    sp:
    description: Just a command.
    usage: /sp
    
    My Plugin.yml i think it is making the problem :\
    Thanks in advice!
     
  2. Offline

    Gravity

    Is the plugin.yml formatted properly? Sometimes the code cuts the formatting, but make sure that there are 4 spaces in front of sp:, and then 8 spaces in front of description and usage (don't use tabs)
     
  3. Offline

    dead4y

    ok i will check and i dont use tabs...
    Edit:
    Same error :\...
     
  4. There needs to be a space after the colons. --> :
     
  5. Offline

    dead4y

  6. don't use
    org.bukkit.main
    as a package. It's not allowed to like you see in the error. something like com.youname.yourplugin or whatever.
     
  7. Offline

    dead4y

    ty very much but i got error again :D http://pastebin.com/UTz3cBV0

    I fixed the error no problem now everything is ok : )

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 24, 2016
  8. Offline

    LethalComet

    Hey Everyone, I got an error:

    mapping values are not allowed here
    in "<unicode string>", line 84, column 20:
    permissions:

    On the Parser. This is my config file for PermissionsBukkit.

    Code:
    users:
        LethalComet:
            permissions:
            groups:
            - Super-Admin
    groups:
        n00b:
            permissions:
                permissions.build: true
                commandbook.kit.starter: true
                commandbook.who: true
                commandbook.motd: true
                commandbook.intro: true
                commandbook.rules: true
                commandbook.kit.list: true
                commandbook.time.check: true
                commandbook.call: true
                commandbook.home: true
                commandbook.sethome: true
                commandbook.warp.teleport: true
                commandbook.warp.list: true
                commandbook.msg: true
                commandbook.away: true
                commandbook.spawn: true
            inheritance:
        Admin:
            permissions:
                permissions.build: true
                commandbook.broadcast: true
                commandbook.reload: true
                commandbook.bans.unban: true
                commands.here: true
            inheritance:
            - Mod
        Regular:
            permissions:
                permissions.build: true
                commandbook.say.me: true
                commandbook.warp.teleport.other: true
            inheritance:
            - n00b
        Respected:
            permissions:
                modifyworld.*: true
                commandbook.clear: true
            inheritance:
            - Regular
        Advanced:
            permissions:
                commands.here: true
                commandbook.return: true
            inheritance:
            - Respected
        Mod:
            permissions:
                commandbook.weather: true
                commandbook.mute: true
                commandbook.kick.*: true
                commandbook.bans.ban: true
                commandbook.bans.isbanned: true
                commandbook.god: true
            inheritance:
            - Advanced
        Super-Admin:
            permissions:
                commandbook.give: true
                commandbook.teleport.other: true
                commandbook.clear.other: true
                commandbook.gamemode: true
                commandbook.gamemode.change: true
                commandbook.gamemode.check: true
                commandbook.gamemode.check.other: true
                commandbook.spawnmob.cow: true
                commandbook.spawnmob.pig: true
                commandbook.spawnmob.chicken: true
            inheritance:
            - Admin       
        Owner:
            permissions:
                commandbook.*: true
            inheritance:
    users:
        LethalComet
            permissions:
                permissions.build: true
            group:
            - Super-Admin
    messages:
        build: '&cYou are unable to build.'
     
    debug: false

    Thanks In Advance :)
     
  9. Offline

    dead4y

    Why u spamming in my thread?
    replace the tabs with spaces
    and
     
Thread Status:
Not open for further replies.

Share This Page