Skip to content

AmsVersion

Returned by server.version. Wraps the Minecraft version string so scripts can compare versions with ==, !=, <, <=, >, and >=, including comparisons against version strings.

View the source

The wrapper uses auto-mcs’s own Minecraft version comparison routine and converts to the original version string when displayed or formatted

if server.version >= '1.8':
server.log('Minecraft 1.8 or newer')