Problems with Plugin.yml

Discussion in 'Plugin Development' started by kmccmk9, Apr 13, 2012.

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

    kmccmk9

    Hello, my plugin.yml is causing errors. I know the reason is because I'm trying to define a second command. What is wrong with my plugin.yml?

    Code:
    name: ServerReloader
    main: com.kmccmk9.ServerReloader.ServerReloader
    version: 0.7
    commands:
      serverreload:
        description: A plugin that allows for in game server reloads!
        usage: /serverreload <time in minutes>
        usage: /serverreload help
        usage: /serverreload autoreload <true/false>
      serverstop:
          description: A command to stop the server after minutes!
          usage: /serverstop <time in minutes>
          usage: /serverstop help
     
  2. Offline

    messageofdeath

    the spaces aren't correct
     
  3. Offline

    Sabersamus

    instead of doing

    Code:
    usage: blah
    usage: blah
    usage: blah
    do
    Code:
    usage: |
    /<command> your stuff
    /<command> your other stuff
    /<command> even more other stuff
     
  4. Offline

    Whisk

    Try this
    Code:
    name: ServerReloader
    main: com.kmccmk9.ServerReloader.ServerReloader
    version: 0.7
    commands:
        serverreload:
            description: A plugin that allows for in game server reloads!
            usage: /serverreload <time in minutes>
            usage: /serverreload help
            usage: /serverreload autoreload <true/false>
        serverstop:
            description: A command to stop the server after minutes!
            usage: /serverstop <time in minutes>
            usage: /serverstop help
    
     
  5. Offline

    dillyg10

    Honestly, I really do not rely on anything of the Plugin.yml's command params, except for description. Just use /yourcommand help it's so much more user friendly, and easier than messing with a plugin.yml :p.
     
Thread Status:
Not open for further replies.

Share This Page