BedrockPlayer.deviceOs

Gets the player's operative system, as indicated by the client in the login packet.

class BedrockPlayer
final pure nothrow @property @trusted @nogc
deviceOs
()

Examples

if(player.os != PlayerOS.android) {
   player.kick("Only android players are allowed");
}

Meta