Is Online (Condition) — Skript
Addon: Skript · Category: Condition · Since: 1.4
Syntax
%offlineplayers% (is|are) (online|offline|connected)Description
Checks whether a player is online. The 'connected' pattern will return false once this player leaves the server, even if they rejoin. Be aware that using the 'connected' pattern with a variable will not have this special behavior. Use the direct event-player or other non-variable expression for best results.
Examples
player is onlineplayer-argument is offlinewhile player is connected:
wait 60 seconds
send "hello!" to player
# The following will act like `{_player} is online`.
# Using variables with `is connected` will not behave the same as with non-variables.
while {_player} is connected:
broadcast "online!"
wait 1 tick