Skip to content

Is Online condition doesn't work in functions #4876

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
tacticalNukes opened this issue Jul 7, 2022 · 1 comment
Closed
1 task done

Is Online condition doesn't work in functions #4876

tacticalNukes opened this issue Jul 7, 2022 · 1 comment
Labels
duplicate For bugs or requests that have already been made and are currently open.

Comments

@tacticalNukes
Copy link

Skript/Server Version

Server ver: git-paper-411 (MC:1.17.1)
Skript ver: 2.6.2-nightly-0ea4bdd
Addons:
- DiSky 4.1.0
- MongoSK 2.3.0
- sk-reflect 2.3
- SkBee 1.16.2
- SkJSON 1.0.0
Dependencies:
-

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
image

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.
@AyhamAl-Ali
Copy link
Member

Duplicate of #4125 (Try without DiSky addon)

@AyhamAl-Ali AyhamAl-Ali added the duplicate For bugs or requests that have already been made and are currently open. label Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate For bugs or requests that have already been made and are currently open.
Projects
None yet
Development

No branches or pull requests

2 participants