Maybe A Auto-Updater?

Discussion in 'Plugin Requests' started by Texor, Sep 17, 2017.

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

    Texor

    Ok, I know that some plugins have this, but I'm asking for this:

    Category: Redstone, "Updating"?
    Version: 1.12
    Name: PluginUpdater
    Description: it will look through the internet and find any new files for all plugins, after that it will replace the old plugin/folder with the new one.
    Commands: "/update" "/up" "/check"
    Permissions: "updater.check", "updater.update"
    When I Would Like It: Any Time Between Today And 1 Month. (some plugins get updated quickly)

    Pls Do This, This Will Help A lot.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Texor Asking the developers for such updaters is a better solution.
    Dev.bukkit has an api but you need the id of the plugin.
    Don't know about spigot or other sources.
     
  3. Offline

    Tabuu_

    With spigot you can update it with an ID aswel.
     
  4. Offline

    timtower Administrator Administrator Moderator

    You do need to find the ID first though.
    Then find the project.
    Then hope that it you can access it.
     
  5. Offline

    Texor

    sooo, what do I do?
     
  6. Offline

    nahkd123

    Hmm, so you have to add plugin name to config file (and the link to download latest version of plugin like "https://dev.bukkit.org/projects/<plugin name>/files/latest").

    Then plugin will copy the file from the link >> Rename it (like <plugin name>-latest.jar) >> replace old files by move it to plugins folder. Also it will tell you that you have to restart the server to use latest version of plugin.

    But idk if this solution is working or not...
     
  7. Offline

    timtower Administrator Administrator Moderator

    @nahkd123 Good luck with plugins where there are 20 with the aame name.

    @Texor There is a more manual way ( configuring then )
    Might work, might not
     
  8. Offline

    nahkd123

    I finish this plugin: https://www.dropbox.com/s/ewyxzwafeg6lnx0/Updater.zip?dl=0

    It contain source folder and a plugin.
    Config file example:
    Code:
    pluginURL:
      Example: https://dev.bukkit.org/projects/workingdrugs/files/latest
    
    So this is what the WorldEdit plugin:
       WorldEdit: https://dev.bukkit.org/projects/worldedit/files/latest
    Use "/update" to update, but you need permission "updater.check"

    Edit: And oh yeah, all plugin must rename to "<Plugin name>-latest.jar" to make it work!
     
    Last edited: Sep 19, 2017
  9. Offline

    timtower Administrator Administrator Moderator

    @nahkd123 1. Don't log your own plugins
    2. Is there a reason that you don't check if the user doesn't has the latest version already?
     
  10. Offline

    Texor

    whats the source folder for and what do i do with it?
     
  11. Offline

    timtower Administrator Administrator Moderator

    Source folder is something that you can ignore, contains the code used to make the plugin.
     
  12. Offline

    Texor

    the plugin doesn't work. really, I joined and my favorite plugin said it needed a new update. i typed /update and restarted the server. but then when I join again, it says the same thing. broken maybe?
     
  13. Offline

    timtower Administrator Administrator Moderator

  14. Offline

    Texor

    ya, and also btw< when I type /update it says "now updating: example" can you make it say " Now Update: Plugins" pls
     
Thread Status:
Not open for further replies.

Share This Page