-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Add paper's player isConnected method #6100
Comments
I don't believe this is a good addition to Skript. The method makes sense for Paper, as a plugin may store Collections of OfflinePlayers, not Skript. |
I don't understand your message Mr. Lime, this has nothing to do with skript's instance fully and is mostly there for while loops where we're actively using To add to this, I've already had this within SkBee for awhile now with no reports of issues when using it. Like I said this is mostly for |
That's kind of the point. Right now you can't tell if a player has left and rejoined between calls to |
I think I've done what you wanted but I don't fully understand so please check my PR and see if it's what you're looking for :) |
Suggestion
Add
OfflinePlayer#isConnected
into skript.Why?
This method is a better alternative to
isOnline
for while loops and not added yetOther
Link to it's documentation: https://jd.papermc.io/paper/1.20/org/bukkit/OfflinePlayer.html#isConnected()
This is a paper 1.20.1 method if I remember properly
Agreement
The text was updated successfully, but these errors were encountered: