PlayerSession.gameVersion

Gets the client's game version, which could either be calculated from the protocol number or given by the client.

class PlayerSession
final shared nothrow @property @safe @nogc
string
gameVersion
()

Examples

if(player.type == Client.JAVA)
   assert(supportedMinecraftProtocols[player.protocol].canFind(player.gameVersion));

Meta