1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help using Skungee network variables

Discussion in 'Skript' started by GemsMC, May 28, 2020.

Thread Status:
Not open for further replies.
  1. GemsMC

    GemsMC Member

    Joined:
    Feb 8, 2020
    Messages:
    19
    Likes Received:
    1
    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 (Skript):
    1. options:
    2.     prefix: &8&eSky&6Squad &8&l◆
    3.  
    4. command /playtime [<offline player>]:
    5.     aliases: pt
    6.     trigger:
    7.         arg-1 is not set:
    8.             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"
    9.             stop
    10.         else:
    11.             if arg-1 has played before:
    12.                 network variable {playtime::seconds::%uuid of arg-1%} is set:
    13.                     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"
    14.                     stop
    15.                 else:
    16.                     send "{@prefix} &7Die Spielzeit dieses Spielers, ist nicht bekannt!"
    17.                     playSound(player, "BLAZE_HIT")
    18.                     stop
    19.             else:
    20.                 send "{@prefix} &7Dieser Spieler war noch nie auf dem Server!"
    21.                 playSound(player, "BLAZE_HIT")
    22.                 stop
    23.  
    24. on join:
    25.     if network variable {playtime::seconds::%uuid of player%} is not set:
    26.         set network variable {playtime::seconds::%uuid of player%} to 0
    27.     if network variable {playtime::mins::%uuid of player%} is not set:
    28.         set network variable {playtime::mins::%uuid of player%} to 0
    29.     if network variable {playtime::hours::%uuid of player%} is not set:
    30.         set network variable {playtime::hours::%uuid of player%} to 0
    31.     if network variable {playtime::days::%uuid of player%} is not set:
    32.         set network variable {playtime::days::%uuid of player%} to 0
    33.  
    34. every second:
    35.     loop all players:
    36.         set network variable {playtime::seconds::%uuid of loop-player%} to network variable {playtime::seconds::%uuid of loop-player%}+1
    37.         network variable {playtime::seconds::%uuid of loop-player%} = 60:
    38.             set network variable {playtime::seconds::%uuid of loop-player%} to 0
    39.             set network variable {playtime::mins::%uuid of loop-player%} to network variable {playtime::mins::%uuid of loop-player%}+1
    40.             network variable {playtime::mins::%uuid of loop-player%} = 60:
    41.                 set network variable {playtime::mins::%uuid of loop-player%} to 0
    42.                 set network variable {playtime::hours::%uuid of loop-player%} to network variable {playtime::hours::%uuid of loop-player%}+1
    43.                 network variable {playtime::hours::%uuid of loop-player%} = 60:
    44.                     set network variable {playtime::hours::%uuid of loop-player%} to 0
    45.                     set network variable {playtime::days::%uuid of loop-player%} to network variable {playtime::days::%uuid of loop-player%}+1

    This is my Error:
    Code (Text):
    1. [10:33:45] [Server thread/ERROR]: #!#!
    2. [10:33:45] [Server thread/ERROR]: #!#! [Skript] Severe Error:
    3. [10:33:45] [Server thread/ERROR]: #!#!
    4. [10:33:45] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
    5. [10:33:45] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    6. [10:33:45] [Server thread/ERROR]: #!#! Your Minecraft version or server software appears to be unsupported by Skript (bensku's version).
    7. [10:33:45] [Server thread/ERROR]: #!#! Currently only supported servers are Spigot and its forks for Minecraft 1.9 or newer.
    8. [10:33:45] [Server thread/ERROR]: #!#! Other versions might work, but since you're getting this error message something is NOT working,
    9. [10:33:45] [Server thread/ERROR]: #!#! nor it will work, unless you switch to supported platform.
    10. [10:33:45] [Server thread/ERROR]: #!#! Issue tracker: https://github.com/SkriptLang/Skript/issues (only if you know what you're doing!)
    11. [10:33:45] [Server thread/ERROR]: #!#!
    12. [10:33:45] [Server thread/ERROR]: #!#! Stack trace:
    13. [10:33:45] [Server thread/ERROR]: #!#! java.lang.NullPointerException
    14. [10:33:45] [Server thread/ERROR]: #!#!     at me.limeglass.skungee.spigot.elements.expressions.ExprNetworkVariable.get(ExprNetworkVariable.java:84)
    15. [10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102)
    16. [10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.effects.EffChange.execute(EffChange.java:268)
    17. [10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
    18. [10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    19. [10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    20. [10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
    21. [10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.events.EvtPeriodical.execute(EvtPeriodical.java:96)
    22. [10:33:45] [Server thread/ERROR]: #!#!     at ch.njol.skript.events.EvtPeriodical$1.run(EvtPeriodical.java:110)
    23. [10:33:45] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:59)
    24. [10:33:45] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352)
    25. [10:33:45] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:783)
    26. [10:33:45] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
    27. [10:33:45] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713)
    28. [10:33:45] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616)
    29. [10:33:45] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
    30. [10:33:45] [Server thread/ERROR]: #!#!
    31. [10:33:45] [Server thread/ERROR]: #!#! Version Information:
    32. [10:33:45] [Server thread/ERROR]: #!#!   Skript: 2.2-dev36 (custom version)
    33. [10:33:45] [Server thread/ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
    34. [10:33:45] [Server thread/ERROR]: #!#!   Minecraft: 1.8.8
    35. [10:33:45] [Server thread/ERROR]: #!#!   Java: 1.8.0_242 (OpenJDK 64-Bit Server VM 25.242-b08)
    36. [10:33:45] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.9.0-12-amd64
    37. [10:33:45] [Server thread/ERROR]: #!#!
    38. [10:33:45] [Server thread/ERROR]: #!#! Server platform: Paper
    39. [10:33:45] [Server thread/ERROR]: #!#!
    40. [10:33:45] [Server thread/ERROR]: #!#! Current node: null
    41. [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%]
    42. [10:33:45] [Server thread/ERROR]: #!#! Current trigger: every second (every 1 second) (test.sk, line 34)
    43. [10:33:45] [Server thread/ERROR]: #!#!
    44. [10:33:45] [Server thread/ERROR]: #!#! Thread: Server thread
    45. [10:33:45] [Server thread/ERROR]: #!#!
    46. [10:33:45] [Server thread/ERROR]: #!#! Language: english
    47. [10:33:45] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
    48. [10:33:45] [Server thread/ERROR]: #!#!
    49. [10:33:45] [Server thread/ERROR]: #!#! End of Error.
    50. [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)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...