public final class ClientVersion extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getClientVersion(org.bukkit.entity.Player player)
Gets the major version from a player's client.
|
static boolean |
isLegacy(org.bukkit.entity.Player player) |
String |
toString()
Returns a string representation of the object.
|
static ClientVersion[] |
values()
Returns an array containing the constants of this class, in the
order they're declared.
|
public String toString()
public static ClientVersion[] values()
for (Protocol protocol : Protocol.values())
System.out.println(protocol);
public static int getClientVersion(org.bukkit.entity.Player player)
Returns 0 if ViaVersion is not enabled or player is null.
player - a playerpublic static boolean isLegacy(org.bukkit.entity.Player player)
Copyright © 2023. All rights reserved.