Cuberite Forum

Full Version: Plugin versions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 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
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
Version number may be float (0.2345)
But that won't allow "0.2.5"

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