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.02k stars 358 forks source link

Offlineplayer that has not joined the server returns null in variable #2458

Closed BladeMC1 closed 2 years ago

BladeMC1 commented 4 years ago
command /fpa [<Text>] [<offlineplayer>]:
    permission: sa.as
    trigger:
        if arg 1 is "isim":
            add arg-2 to {fa::*}
            send "Başarı ile %arg-2% &feklendi" to player

I add people with this command and when I add: http://prntscr.com/p6a5sh When you restart the server: http://prntscr.com/p6a5xa

Server and skript relase: http://prntscr.com/p6cdca

ShaneBeee commented 4 years ago

1) Any version other than the newest version of Skript is no longer supported 2) 1.8.8 and below has never been supported by this fork 3) When creating a new issue, please don't delete the template, actually fill it in.

Blueyescat commented 4 years ago

I can confirm this on a Paper 1.13.2 server with Skript 2.4-beta7, happens if the offline player saved in a variable has never played on the server.

According to Bukkit/Spigot docs this is not a new thing but also not related to Skript, though it shouldn't be returning null. Probably return the UUID? https://hub.spigotmc.org/javadocs/spigot/org/bukkit/OfflinePlayer.html#getName--

FranKusmiruk commented 4 years ago

Be aware that even if this bug is fixed, neither your minecraft version nor your Skript version is supported anymore so you won't be able to solve this without updating.