AmsVersion
Returned by server.version. Wraps the Minecraft version string so scripts can compare versions with ==, !=, <, <=, >, and >=, including comparisons against version strings.
Methods
Section titled “Methods”The wrapper uses auto-mcs’s own Minecraft version comparison routine and converts to the original version string when displayed or formatted
Examples
Section titled “Examples”if server.version >= '1.8': server.log('Minecraft 1.8 or newer')