-
New Feature
-
Resolution: Unresolved
-
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.