You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to use {_p} is online in a function doesn't work and detect the player as online
function isOnline(p: player): if {_p} is online: broadcast "&a%{_p}% is online" else: broadcast "&c%{_p}% not online"
When I run this and in game put !isOnline(player)
broadcasts
But using !broadcast "yes" if player is online
Outputs "yes" in chat
Expected Behavior
Well that'd it would detect if the player is online or not in a function
Steps to Reproduce
just make a function taking in a player and check if that player is online. function isOnline(p: player): if {_p} is online: broadcast "&a%{_p}% is online" else: broadcast "&c%{_p}% not online"
Errors or Screenshots
No response
Other
No response
Agreement
I have read the guidelines above and affirm I am following them with this report.
The text was updated successfully, but these errors were encountered:
Skript/Server Version
Bug Description
Trying to use {_p} is online in a function doesn't work and detect the player as online
function isOnline(p: player): if {_p} is online: broadcast "&a%{_p}% is online" else: broadcast "&c%{_p}% not online"
When I run this and in game put

!isOnline(player)
broadcasts
But using
!broadcast "yes" if player is online
Outputs "yes" in chat
Expected Behavior
Well that'd it would detect if the player is online or not in a function
Steps to Reproduce
just make a function taking in a player and check if that player is online.
function isOnline(p: player): if {_p} is online: broadcast "&a%{_p}% is online" else: broadcast "&c%{_p}% not online"
Errors or Screenshots
No response
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: