Help With Auto-Updater

Discussion in 'Plugin Development' started by Mindlessmink, Dec 19, 2016.

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

    Mindlessmink

    Hey, trying to make an Auto-Updater for my plugin. First time using this Lib/Class made by gravity (I believe) and it keeps giving me an error message :p. It's saying my file version should be:

    PluginName vVERSION - (I already done this)

    this is my main class where I set it up,

    Code:
        public void onEnable() {
            Bukkit.getPluginManager().registerEvents(this, this);
            saveDefaultConfig();
            getLogger().info(ChatColor.GOLD
                    + "MinkFreeze update: Added new help bot Dougal! Customizable in settings too! You can manage his behavior.");
            up = new Updater(this, 101520, getFile(), UpdateType.NO_DOWNLOAD, false);
        }
    
    That's the bit where I initialize it (I have private Updater up; above this.

    Console message:

    Code:
    8:39:20 PM [WARN] [MinkFreeze] The author of this plugin has misconfigured their Auto Update system
    8:39:20 PM [WARN] [MinkFreeze] File versions should follow the format 'PluginName vVERSION'
    8:39:20 PM [WARN] [MinkFreeze] Please notify the author of this error.

    files for proof of versions, correct me if I am wrong but I think this is how it should be:

    https://dev.bukkit.org/projects/minkfreeze/files

    And my plugin.yml part that matters:

    Code:
    name: MinkFreeze
    version: 1.5 (<-- I made this lower than  the current version so it would update)
    main: me.mindlessmink.minkfreeze.MinkFreeze
    description: The ultimate freeze plugin for 1.11!
    Thanks for any help you give, means a lot. :D
     
  2. Online

    timtower Moderator Moderator

    @Mindlessmink That uploader depended on the old dev.bukkit as far as I know, not the new one.
    Could you link the lib?
     
  3. Offline

    Mindlessmink

  4. Online

    timtower Moderator Moderator

  5. Offline

    Mindlessmink

    @timtower Wow, that is dedication. Thanks a lot for looking over all that :)

    Merry Christmas too if you celebrate it 25th,
     
    timtower likes this.
  6. Offline

    tastybento

    Make sure the version name is actually with a small v. I had to change the code because I use a big V. Also, you have to create the shouldUpdate() method yourself to tell it whether the latest version is later than the one running - it's in the JavaDocs.
     
Thread Status:
Not open for further replies.

Share This Page