Gamemode Plugin.yml

Discussion in 'Plugin Development' started by BailyAlexander, Jun 7, 2013.

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

    BailyAlexander

    Hey, i made a plugin for my server called "OnlyGamemode" Since chaning a gamemode is the only thing it does. It keeps saying my plugin.yml is not valid. Please help?


    Anyone know why?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  2. Offline

    lycano

    BailyAlexander if it tells you that your plugin.yml is incorrect it will tell you why also. Can you post that error message pls?
     
  3. Offline

    Pink__Slime

    Not sure if it removed your indentation when you posted it but here it is. Remember, YML doesn't accept tabs either.

    Code:
    name: OnlyGamemode
    version: 1.0
    main: me.entonez.onlygamemode.OnlyGamemode
    author: Entonez
    description: Changes player's game mode.
    commands:
        creative:
            usage: /<command>
            description: Toggles game mode to creative.
        survival:
            usage: /<command>
            description: Toggles game mode to survival.
     
  4. Offline

    lycano

    Oh I see ... is it probably the string "player's game mode" ?

    Try escaping it as yml does use the single quote for strings "player's" => "player\'s"
     
  5. Offline

    Pink__Slime

    lycano
    That shouldn't be a problem. It parses fine.
     
  6. Offline

    BailyAlexander

    I did use tabs in the plugin.yml, let me test it.
     
Thread Status:
Not open for further replies.

Share This Page