Problem with plugin.yml

Discussion in 'Plugin Development' started by klofno1, Jul 16, 2013.

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

    klofno1

    Hello I'd like to call my plugin, Ariolandi (Latin for witchcraft) but I cannot. I named my java project Ariolandi and my packase is named : me.JonathanNLD.Ariolandi

    But in the plugin.yml, everything I do : name: Ariolandi it says it has to be JonathanNLD

    How can I change it into Ariolandi?
     
  2. Offline

    Alxlre

    klofno1 Show us the plugin.yml?
     
  3. Offline

    klofno1


    Code:
    name: JonathanNLD
    version: 1.0
    main: me.JonathanNLD.Ariolandi.Main
    author: JonathanNLD
     
  4. Offline

    MrGermanrain

    klofno1 Does the plugin have commands? If so it needs to look something like this:
    Code:
    name: WitherHealth
    main: me.mrgermanrain.wither.wither
    version: 1.0
    description: WitherHealth Plugin
    commands:
        wh:
            description: GodMode!
    permissions:
        wither.change:
            description: Permission to remove wither effect.
    This is my last plugin.yml maybe it helped you... idk :p
     
  5. Offline

    Alxlre

    MrGermanrain Actually, in my opinion something like this would be better.
    Code:
    name: WitherHealth
    main: me.mrgermanrain.wither.wither
    version: 1.0
    description: WitherHealth Plugin
    commands:
        wh:
            description: GodMode!
            permission: permission.node
            permission-message: You don't have permission!
            usage: /wh
            aliases: [witherhealth]
    permissions:
      wither.change:
        description: Permission to remove the wither effect
    Much less hasPermission stuff in the code.
     
  6. Offline

    kreashenz

    Alxlre :p That's true, but.. Can you set colours in the plugin.yml?
     
  7. Offline

    Alxlre

    kreashenz Yes! Use & and then ChatColor.translateAlternateColorCodes.
     
  8. Offline

    kreashenz

    Alxlre But how do you get the path of the message? I might use it now :D
     
  9. Offline

    Alxlre

    kreashenz String msg = config.getString("commands.command.permission-message"); AFAIK. I don't know if that works. Another way is to use §.
     
  10. Offline

    kreashenz

    Alxlre YEah, I use §. I've never used ChatColor in any of my public plugins, because I decompiled ChatColor.class and found that it used §s. Well, better leave this topic alone, we're getting off topic..
     
Thread Status:
Not open for further replies.

Share This Page