[SPIGOT-5758] Plugin updates in 'update' should also check for plugin name, not just file name. Created: 28/May/20  Updated: 28/May/20

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: libraryaddict Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Craftbukkit, Spigot

Version: git-Spigot-2f5d615-cfeef75 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

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.


Generated at Thu Apr 03 16:05:22 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.