Cuberite Forum
Plugin versions - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Plugin versions (/thread-2121.html)



Plugin versions - NiLSPACE - 09-17-2015

Currently plugin versions are integers. Because of this I barely update my plugin versions (since going from version 1 to 2 seems rather large for small changes.)

I suggest we change this to strings. That way developers can choose their own version format. Lua supports comparing strings ("1.5.2" < "1.5.3" gives true) so version checking should still be rather simple. There are some difficulties though. For example "1.10.1" < "1.9.9" still gives true, but I think the plugins themselves should fix that.


Or if I remember correctly @xoft once said he wanted to remove plugin versions, but I can't find where he said that. It could also be on the Gallery server. It could also be that he didn't say it at allTongue


RE: Plugin versions - FakeTruth - 09-18-2015

Android apps also use an integer, together with a string
I suppose the string would be for a pretty version, and the integer for comparing versions


RE: Plugin versions - DrMasik - 09-18-2015

Version number may be float (0.2345)


RE: Plugin versions - NiLSPACE - 09-18-2015

But that won't allow "0.2.5"

@FakeTruth that's a pretty good idea. Perhaps we should do that. Smile