query(e, 'player_type')
Syntax
query(entity, 'player_type')
Returns null
if the argument is not a player, otherwise:
singleplayer
: for singleplayer gamemultiplayer
: for players on a dedicated serverlan_host
: for singleplayer owner that opened the game to LANlan_player
: for all other players that connected to a LAN hostfake
: any carpet-spawned fake playershadow
: any carpet-shadowed real playerrealms
: ?