Check variable of an offline player?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Not tested yet, but I don't think it'd work because I assign the variable to a player's uuid, not his actual name, so idk, though I havent tested this.
The code works well , it's not a script problem.
Try to use %player% instead of %uuid of player% , it should work.
 
How can I make it work for 1.7 MC server version? (it ain't loading for me)

code_language.skript:
05.04 17:06:14 [Server] INFO Enabling Skript v2.2-dev25
05.04 17:06:14 [Server] ERROR Error occurred while enabling Skript v2.2-dev25 (Is it up to date?)
05.04 17:06:14 [Server] INFO java.lang.NoSuchFieldError: SPRUCE_DOOR
05.04 17:06:14 [Server] INFO at ch.njol.skript.effects.EffToggle.<clinit>(EffToggle.java:75) ~[?:?]
05.04 17:06:14 [Server] INFO at java.lang.Class.forName0(Native Method) ~[?:1.8.0_121]
05.04 17:06:14 [Server] INFO at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_121]
05.04 17:06:14 [Server] INFO at ch.njol.skript.SkriptAddon.loadClasses(SkriptAddon.java:110) ~[?:?]
05.04 17:06:14 [Server] INFO at ch.njol.skript.Skript.onEnable(Skript.java:286) ~[?:?]
05.04 17:06:14 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
05.04 17:06:14 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot_1_7_1_8.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
 
You can't , if you're using old versions of skript , we can't help you out with bugs because at least them are already fixed in the latest ones.
So , you should update your server and use the protocol hack if you want more version support for your server.
As @Lego_freak1999 said above , the uuid of offline players is already fixed in the dev25 as you can see in the changelog:
  • Fixed a bug with offline player UUIDs
 
I've been using skript since 1.8 and I've always had a script that keeps a database of the UUID of every player that joins the server and matches it to a name, which will work fine in 1.7 as well. It can be a pain to write to begin with but it saves a lot of pain and suffering, and really there is absolutely no excuse to not be UUID-compatible 2 years after they've released name changes. It will be tricky to convert the data you already have over to this because you haven't stored the UUIDs as a list variable (for example, {kills::%uuid of attacker%}) that you can loop through, so you might just have to start from scratch. If your players are nice they'll hopefully be understanding.
 
Status
Not open for further replies.