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

Scoreboard won't work

Discussion in 'Skript' started by bigwillyman69, Sep 14, 2019 at 5:15 AM.

  1. b

    bigwillyman69 Member

    Joined:
    Aug 27, 2019
    Messages:
    10
    Likes Received:
    0
    Skript Version (do not put latest): Skript 2.2
    Skript Author: Bensku
    Minecraft Version: 1.14.4
    ---
    Full Code:
    Code (Text):
    1.  
    2. variables:
    3.    {%player%.kills} = 0
    4.    {%player%.deaths} = 0
    5.    {%player%.kdr} = "%%{%player%.kills}% / %{%player%.deaths}%%"
    6.  
    7. every second:
    8.    loop all players:
    9.       wipe loop-player's sidebar
    10.       set name of sidebar of loop-player to "&1&lMoist&3&lblock"
    11.       set score "&r" in sidebar of loop-player to 10
    12.       set score "&bUsername: %loop-player%" in sidebar of loop-player to 8
    13.       set score "&bRank: %loop-player's prefix%" in sidebar of loop-player to 7
    14.       set score "&bMoney&8: %loop-player's balance%" in sidebar of loop-player to 6
    15.       set score "&bKills: %{%loop-player%.kills}%" in sidebar of loop-player to 5
    16.       set score "&bDeaths: &f%{%loop-player.deaths}%" in sidebar of loop-player to 4
    17.       set score "&bKDR: &f%%{%loop-player%.kills}%/{%loop-player%.deaths}%%" in sidebar of loop-player to 3
    18.       set score "&r"in sidebar of loop-player to 2
    19.       set score "&aOnline: &f%number of all players%&8/&f10" in sidebar of loop-player to 1
    Errors on Reload:

    none?

    Console Errors: (if applicable)

    [04:13:16] [Server thread/INFO]: jaydenderp issued server command: /sk reload j4wotrd
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! [Skript] Severe Error:
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
    [04:13:17] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    [04:13:17] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
    [04:13:17] [Server thread/ERROR]: #!#! Here is full list of them:
    [04:13:17] [Server thread/ERROR]: #!#! skRayFall (https://sk.rayfall.net/) SkQuery
    [04:13:17] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
    [04:13:17] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
    [04:13:17] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
    [04:13:17] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
    [04:13:17] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
    [04:13:17] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! Stack trace:
    [04:13:17] [Server thread/ERROR]: #!#! java.lang.IllegalArgumentException: Score '§bKDR: §f%%{%player%.kills}% / %{%player%.deaths}%%' is longer than the limit of 40 characters
    [04:13:17] [Server thread/ERROR]: #!#! at org.apache.commons.lang.Validate.isTrue(Validate.java:136)
    [04:13:17] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_14_R1.scoreboard.CraftObjective.getScore(CraftObjective.java:121)
    [04:13:17] [Server thread/ERROR]: #!#! at net.rayfall.eyesniper2.skrayfall.scoreboard.EffSetScore.execute(EffSetScore.java:63)
    [04:13:17] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
    [04:13:17] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    [04:13:17] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    [04:13:17] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
    [04:13:17] [Server thread/ERROR]: #!#! at ch.njol.skript.events.EvtPeriodical.execute(EvtPeriodical.java:96)
    [04:13:17] [Server thread/ERROR]: #!#! at ch.njol.skript.events.EvtPeriodical$1.run(EvtPeriodical.java:110)
    [04:13:17] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:81)
    [04:13:17] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:394)
    [04:13:17] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1021)
    [04:13:17] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:396)
    [04:13:17] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:969)
    [04:13:17] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:814)
    [04:13:17] [Server thread/ERROR]: #!#! at java.lang.Thread.run(Thread.java:748)
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! Version Information:
    [04:13:17] [Server thread/ERROR]: #!#! Skript: 2.4-beta5-MH (custom version)
    [04:13:17] [Server thread/ERROR]: #!#! Flavor: selfbuilt-unknown
    [04:13:17] [Server thread/ERROR]: #!#! Date: unknown
    [04:13:17] [Server thread/ERROR]: #!#! Bukkit: 1.14.4-R0.1-SNAPSHOT
    [04:13:17] [Server thread/ERROR]: #!#! Minecraft: 1.14.4
    [04:13:17] [Server thread/ERROR]: #!#! Java: 1.8.0_191 (OpenJDK 64-Bit Server VM 25.191-b12)
    [04:13:17] [Server thread/ERROR]: #!#! OS: Linux amd64 4.15.0-1039-aws
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! Server platform: Spigot
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! Current node: null
    [04:13:17] [Server thread/ERROR]: #!#! Current item: null
    [04:13:17] [Server thread/ERROR]: #!#! Current trigger: every second (every 1 second) (j4wotrd.sk, line 123)
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! Thread: Server thread
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! Language: english
    [04:13:17] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:17] [Server thread/ERROR]: #!#! End of Error.
    [04:13:17] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! [Skript] Severe Error:
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
    [04:13:18] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
    [04:13:18] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
    [04:13:18] [Server thread/ERROR]: #!#! Here is full list of them:
    [04:13:18] [Server thread/ERROR]: #!#! skRayFall (https://sk.rayfall.net/) SkQuery
    [04:13:18] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
    [04:13:18] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
    [04:13:18] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
    [04:13:18] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
    [04:13:18] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
    [04:13:18] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! Stack trace:
    [04:13:18] [Server thread/ERROR]: #!#! java.lang.IllegalArgumentException: Score '§bKDR: §f%%{%player%.kills}% / %{%player%.deaths}%%' is longer than the limit of 40 characters
    [04:13:18] [Server thread/ERROR]: #!#! at org.apache.commons.lang.Validate.isTrue(Validate.java:136)
    [04:13:18] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_14_R1.scoreboard.CraftObjective.getScore(CraftObjective.java:121)
    [04:13:18] [Server thread/ERROR]: #!#! at net.rayfall.eyesniper2.skrayfall.scoreboard.EffSetScore.execute(EffSetScore.java:63)
    [04:13:18] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
    [04:13:18] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    [04:13:18] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    [04:13:18] [Server thread/ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
    [04:13:18] [Server thread/ERROR]: #!#! at ch.njol.skript.events.EvtPeriodical.execute(EvtPeriodical.java:96)
    [04:13:18] [Server thread/ERROR]: #!#! at ch.njol.skript.events.EvtPeriodical$1.run(EvtPeriodical.java:110)
    [04:13:18] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:81)
    [04:13:18] [Server thread/ERROR]: #!#! at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:394)
    [04:13:18] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1021)
    [04:13:18] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:396)
    [04:13:18] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:969)
    [04:13:18] [Server thread/ERROR]: #!#! at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:814)
    [04:13:18] [Server thread/ERROR]: #!#! at java.lang.Thread.run(Thread.java:748)
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! Version Information:
    [04:13:18] [Server thread/ERROR]: #!#! Skript: 2.4-beta5-MH (custom version)
    [04:13:18] [Server thread/ERROR]: #!#! Flavor: selfbuilt-unknown
    [04:13:18] [Server thread/ERROR]: #!#! Date: unknown
    [04:13:18] [Server thread/ERROR]: #!#! Bukkit: 1.14.4-R0.1-SNAPSHOT
    [04:13:18] [Server thread/ERROR]: #!#! Minecraft: 1.14.4
    [04:13:18] [Server thread/ERROR]: #!#! Java: 1.8.0_191 (OpenJDK 64-Bit Server VM 25.191-b12)
    [04:13:18] [Server thread/ERROR]: #!#! OS: Linux amd64 4.15.0-1039-aws
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! Server platform: Spigot
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! Current node: null
    [04:13:18] [Server thread/ERROR]: #!#! Current item: null
    [04:13:18] [Server thread/ERROR]: #!#! Current trigger: every second (every 1 second) (j4wotrd.sk, line 123)
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! Thread: Server thread
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! Language: english
    [04:13:18] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
    [04:13:18] [Server thread/ERROR]: #!#!
    [04:13:18] [Server thread/ERROR]: #!#! End of Error.
    Other Useful Info:

    Addons using (including versions):
    SkRayFall

    Troubleshooting:

    Have you tried searching the docs? No
    Have you tried searching the forums? No
    What other methods have you tried to fix it? Fixing spelling errors, changing the code around
    --- Double Post Merged, Sep 14, 2019 at 5:22 AM, Original Post Date: Sep 14, 2019 at 5:15 AM ---


    Fixed it
    Code (Text):
    1. every second:
    2.    loop all players:
    3.       wipe loop-player's sidebar
    4.       set name of sidebar of loop-player to "&1&lMoist&3&lblock"
    5.       set score "&r" in sidebar of loop-player to 9
    6.       set score "&bUsername: &f%loop-player%" in sidebar of loop-player to 8
    7.       set score "&bRank: %loop-player's prefix%" in sidebar of loop-player to 7
    8.       set score "&bMoney&8: &f%loop-player's balance%" in sidebar of loop-player to 6
    9.       set score "&bKills: &f%{%loop-player%.kills}%" in sidebar of loop-player to 5
    10.       set score "&bDeaths: &f%{%loop-player%.deaths}%" in sidebar of loop-player to 4
    11.       set {%loop-player%.kdr} to {%loop-player%.kills} / {%loop-player%.deaths}
    12.       set score "&bKDR: &f%{%loop-player%.kdr}%" in sidebar of loop-player to 3
    13.       set score "&r" in sidebar of loop-player to 2
    14.       set score "&aOnline: &f%number of all players%&8/&f10" in sidebar of loop-player to 1
    15.  
    I also removed the KDR variable in the variables: list.
     
Loading...