Resource Plugin YAML generator

Discussion in 'Spigot Plugin Development' started by Redrield, Apr 20, 2017.

  1. I don't know if anyone will find this useful... So here we go

    I made a thing to generate the plugin.yml for you, so that you don't need to write it. This is how it works

    Code (Text):
    @PluginMeta(name = "CoolPlugin", version = "1.0")
    class MyPlugin : JavaPlugin() {

        override fun onEnable() {
  "look how modern")
    Yes, the example is written in Kotlin, deal with it.
    The actual thing supports all of the parts of the Plugin YAML spec that bukkit published, except for database cause that's going out the window in 1.12 anyways.

    To add commands, you use @CommandMeta (I tried to make it not an annotation, but annotations are annoying like this)
    Code (Text):
    @PluginMeta(name = "CoolPlooginWithCommands",
                              version = "1.0",
                              commands = {@CommandMeta(name = "test", description = "cool command pls use", usage = "/test")}
    You don't need to shade it, it's just a compile-time thing, so it won't bloat ur jars

    Pls no issues this was made for fun

    You can use maven with it. I'm just gonna show a gradle example here, but you can work it out.

    Code (Text):
    repositories {
        maven {
            url = ""

    dependencies {
        compile "com.redrield:spigot-yaml-generator:1.0"
    #1 Redrield, Apr 20, 2017
    Last edited: Apr 20, 2017
    • Like Like x 2
  2. rip non-kotlin users
    • Agree Agree x 2
  3. Nah fam it works fine with java, hell I was testing it with a Java plugin.

    Kotlin users just gotta remember to add it as a kapt dependency so that annotation processors can run. Traditional java, it just works
  4. bump, added maven
  5. I honestly had no idea that existed. You can feel free to check and see that the source is very different (Notice the language choice ;))

    Either way, choose whichever one you want, if you prefer that one, go ahead.
  7. Kotlin is just skript level 2.
  8. What the f*** are you talking about? Kotlin is just a programming language like Java. Please, tell me one thing which Skript and Kotlin have in common.
    • Friendly Friendly x 1
  9. Chill it was just a meme
    • Funny Funny x 1
    • Winner Winner x 1
  10. :) You triggered me m8.