Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5758

Plugin updates in 'update' should also check for plugin name, not just file name.

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-2f5d615-cfeef75 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
    • Yes

      When adding files to the folder 'update' for next server restart, the update system is very basic and does not do more than check if there is a file called the same thing in plugins, and if so replaces it.

       

      If I release Plugin-1.2.jar and want to remove the old jar Plugin-1.1.jar, there doesn't seem to be any alternatives but a hacky way, or to rename my new jar to Plugin-1.1.jar. So version 1.2 is now running under the file name of the older version.

       

      My proposal is as follows. Update files as usual, but if no existing file is found then grab the plugin name from the jar.

      When loading the plugins, if there is a plugin with the same name as above, then the file is deleted and the new plugin is moved and loaded instead.

            Unassigned Unassigned
            libraryaddict libraryaddict
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: