Skip to content
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 allowLookups option to offlineplayer function #6831

Merged

Conversation

sovdeeth
Copy link
Member

Description

Since offlineplayer lookups by name can block the server while they request the uuid from Mojang, they can be very dangerous to parse as. This adds a optional parameter to prevent lookups in the offlineplayer() function for Paper 1.16.5+

I would like opinions on the validity of the Notch test though, since it would fail if the user doesn't have an internet connection or the auth servers go down. Let me know if it should be removed.


Target Minecraft Versions: paper 1.16.5+
Requirements: none
Related Issues: none

@sovdeeth sovdeeth added enhancement Feature request, an issue about something that could be improved, or a PR improving something. 2.9 Targeting a 2.9.X version release labels Jun 29, 2024
Copy link
Member

@Pikachu920 Pikachu920 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. i think the test requiring internet is fine too. its easy to identify the failed test and comment it out if someone really has no internet

@sovdeeth sovdeeth added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jul 1, 2024
@sovdeeth sovdeeth merged commit f1e0dd6 into SkriptLang:dev/feature Jul 1, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9 Targeting a 2.9.X version release enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants