Polar Help

ClientVersion Interface

Introduction

The ClientVersion interface provides information about a player's Minecraft client version.

Methods

protocolVersion

int protocolVersion();

Description:

Gets the protocol version number used by the client.

Returns:

The protocol version as an int.

name

String name();

Description:

Gets the version name of the client (e.g., "1.8.9").

Returns:

The client version name as a String.

brand

String brand();

Description:

Gets the brand of the client (e.g., "Vanilla", "Forge", etc.).

Returns:

The client brand as a String.