[SPIGOT-3146] Last zero ignored in plugin version Created: 23/Mar/17  Updated: 25/Mar/17  Resolved: 23/Mar/17

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

Type: Bug Priority: Minor
Reporter: Obelus Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: 1.11.2, Plugins, bug
Environment:

Windows 10, Java 8 Update 121, Minecraft 1.11.2


Attachments: PNG File Console.PNG     PNG File plugin.PNG    

 Description   

Hi!

When I put in my plugin.yml a version that ends by "10" (like 2.10), the last zero is ignored by the server and it displays "2.1" when I type "/ver <my plugin>".



 Comments   
Comment by Black Hole [ 25/Mar/17 ]

Like I said it's just a data type issue with YAML. Plugin versions are handled as strings by Bukkit.

There are different standards for denoting version numbers. Using "2.1" after "2.0" is more common than "2.01". Even Minecraft is using that scheme.
See also: https://en.wikipedia.org/wiki/Software_versioning

Comment by Kiran Hart [ 25/Mar/17 ]

This is normal from what I know. When ending the version like that it cuts it off. Because you would assume 2.1 is 2.10 if you wanted to show that the version is let's say .1 of 2 you would write 2.01. But if you write 2.11 of course that will show in /ver but yea it's normal, it's the way yaml files read it in other words

Comment by Obelus [ 23/Mar/17 ]

Ok, I did not know that, thanks!

Comment by Black Hole [ 23/Mar/17 ]

It's an issue with the type system of YAML files. 2.10 is recognized as a double value. You should specify a string value instead (with single or double quotes).

Generated at Sat Dec 13 11:46:39 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.