ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPlayerInWorld

Function

isPlayerInWorld

ServerPlayersTrilogy Hub only

Checks whether the player has entered the world (after the first spawn).

Syntax

bool isPlayerInWorld(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

true after the first spawn.

Example

for _, p in ipairs(getPlayers()) do
    if isPlayerInWorld(p) then
        outputChatBox("Wydarzenie zaczyna się!", p)
    end
end

See also