Need help using Skungee network variables

  • 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.

sluhtie

Supporter
Feb 8, 2020
117
9
18
Germany
cwcodes.de
So I'm trying to make a playtime command using Skungee because I have a bungeecord network. So my Problem is that It gives me a error at my scheduler of ervery second.
Maybe someone could help me.

This is my Skript (proxy/plugins/Skungee/scripts):
code_language.skript:
options:
    prefix: &8┃ &eSky&6Squad &8&l◆

command /playtime [<offline player>]:
    aliases: pt
    trigger:
        arg-1 is not set:
            send "{@prefix} &7Deine Spielzeit &8● &e%network variable {playtime::days::%uuid of player%}%&ed %network variable {playtime::hours::%uuid of player%}%&eh %network variable {playtime::mins::%uuid of player%}%&em %network variable {playtime::seconds::%uuid of player%}%&es"
            stop
        else:
            if arg-1 has played before:
                network variable {playtime::seconds::%uuid of arg-1%} is set:
                    send "{@prefix} &7%arg-1%&7's Spielzeit &8● &e%network variable {playtime::days::%uuid of arg-1%}%&ed %network variable {playtime::hours::%uuid of arg-1%}%&eh %network variable {playtime::mins::%uuid of arg-1%}%&em %network variable {playtime::seconds::%uuid of arg-1%}%&es"
                    stop
                else:
                    send "{@prefix} &7Die Spielzeit dieses Spielers, ist nicht bekannt!"
                    playSound(player, "BLAZE_HIT")
                    stop
            else:
                send "{@prefix} &7Dieser Spieler war noch nie auf dem Server!"
                playSound(player, "BLAZE_HIT")
                stop
 
on join:
    if network variable {playtime::seconds::%uuid of player%} is not set:
        set network variable {playtime::seconds::%uuid of player%} to 0
    if network variable {playtime::mins::%uuid of player%} is not set:
        set network variable {playtime::mins::%uuid of player%} to 0
    if network variable {playtime::hours::%uuid of player%} is not set:
        set network variable {playtime::hours::%uuid of player%} to 0
    if network variable {playtime::days::%uuid of player%} is not set:
        set network variable {playtime::days::%uuid of player%} to 0
 
every second:
    loop all players:
        set network variable {playtime::seconds::%uuid of loop-player%} to network variable {playtime::seconds::%uuid of loop-player%}+1
        network variable {playtime::seconds::%uuid of loop-player%} = 60:
            set network variable {playtime::seconds::%uuid of loop-player%} to 0
            set network variable {playtime::mins::%uuid of loop-player%} to network variable {playtime::mins::%uuid of loop-player%}+1
            network variable {playtime::mins::%uuid of loop-player%} = 60:
                set network variable {playtime::mins::%uuid of loop-player%} to 0
                set network variable {playtime::hours::%uuid of loop-player%} to network variable {playtime::hours::%uuid of loop-player%}+1
                network variable {playtime::hours::%uuid of loop-player%} = 60:
                    set network variable {playtime::hours::%uuid of loop-player%} to 0
                    set network variable {playtime::days::%uuid of loop-player%} to network variable {playtime::days::%uuid of loop-player%}+1

This is my Error:
Code:
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[10:33:45] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[10:33:45] [Server thread/ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
[10:33:45] [Server thread/ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
[10:33:45] [Server thread/ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
[10:33:45] [Server thread/ERROR]: #!#! nor it will work, unless you switch to supported platform.
[10:33:45] [Server thread/ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! Stack trace:
[10:33:45] [Server thread/ERROR]: #!#! java.lang.NullPointerException
[10:33:45] [Server thread/ERROR]: #!#!     at me.limeglass.skungee.spigot.elements.expressions.ExprNetworkVariable.get(ExprNetworkVariable.java:84)
[10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102)
[10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:268)
[10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
[10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.events.EvtPeriodical.execute(EvtPeriodical.java:96)
[10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.events.EvtPeriodical$1.run(EvtPeriodical.java:110)
[10:33:45] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59)
[10:33:45] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352)
[10:33:45] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783)
[10:33:45] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
[10:33:45] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713)
[10:33:45] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616)
[10:33:45] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! Version Information:
[10:33:45] [Server thread/ERROR]: #!#!   Skript: 2.2-dev36 (custom version)
[10:33:45] [Server thread/ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[10:33:45] [Server thread/ERROR]: #!#!   Minecraft: 1.8.8
[10:33:45] [Server thread/ERROR]: #!#!   Java: 1.8.0_242 (OpenJDK 64-Bit Server VM 25.242-b08)
[10:33:45] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.9.0-12-amd64
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! Server platform: Paper
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! Current node: null
[10:33:45] [Server thread/ERROR]: #!#! Current item: set ExprNetworkVariable - [[skungee] (global|network|bungee[[ ]cord]) variable [(from|of)] %objects%] to ExprNetworkVariable - [[skungee] (global|network|bungee[[ ]cord]) variable [(from|of)] %objects%]
[10:33:45] [Server thread/ERROR]: #!#! Current trigger: every second (every 1 second) (test.sk, line 34)
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! Thread: Server thread
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! Language: english
[10:33:45] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[10:33:45] [Server thread/ERROR]: #!#!
[10:33:45] [Server thread/ERROR]: #!#! End of Error.
[10:33:45] [Server thread/ERROR]: #!#!

I'm getting the error on the Spigot server and not proxy server btw
Maybe @LimeGlass knows what to do

Skript Version: Skript-2.2-Dev36 (Custom Version)
Skungee version: 1.0.13
Server Version: paperspigot 1.8.8
BungeeCord Version: FameCord 0.2.1 Snapshot (Waterfall)
 
Status
Not open for further replies.