compatibility_check_compare_versions: debug: false type: procedure definitions: version1|version2 script: - define v1split <[version1].split[.]> - define v2split <[version2].split[.]> - foreach <[v1split]> as:v1splitpart: - define v2splitpart <[v2split].get[<[loop_index]>].if_null[0]> - if <[v1splitpart]> > <[v2splitpart]>: - determine 1 - if <[v1splitpart]> < <[v2splitpart]>: - determine -1 - if <[v2split].size> > <[v1split].size>: - determine -1 - determine 0 compatibility_check_world: debug: false type: world events: after player joins: - define player_version - define server_version - if |<[server_version]>]> == -1: - wait 5s - if !: - stop - narrate "" - narrate "<&c><&l>[<&4><&l>!<&c><&l>] <&c>You are using an outdated Minecraft version!" - narrate "<&6>Your version: <&f><[player_version]>" - narrate "<&6>Server version: <&f><[server_version]>" - narrate "" - narrate "<&f>You can still play, however we strongly encourage you to consider <&e>updating your game<&f>." - narrate "<&f>We will not offer bug support if you are using an outdated version!" - narrate "" - narrate "<&7>(Your ViaVersion protocol: )" - narrate ""