SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.06k stars 368 forks source link

add allowLookups option to offlineplayer function #6831

Closed sovdeeth closed 3 months ago

sovdeeth commented 3 months ago

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