Solved Error caused by: set name of sidebar...

  • 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 community!

    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.

LoneElf

Active Member
Apr 30, 2017
165
2
18
I have the strangest problem. So, I have the code for my scoreboard which is the same that is used in the hub which works perfectly fine there, but on KitPvP, it doesn't. Here is the code:
code_language.skript:
every second:
        set {_numKitPvP} to size of all bungeecord players on server "KitPvP"
        set {_numCreative} to size of all bungeecord players on server "Creative"
        set {_numPrison} to size of all bungeecord players on server "Prison"
        wait 5 ticks
        loop all players:
                wipe loop-player's sidebar
                set name of sidebar of loop-player to "&9&lHUB"
                set score "&8&m|&r  &7Welcome Back," in sidebar of loop-player to 9
                set score "&8&m|&r  &b%loop-player%!" in sidebar of loop-player to 8
                set score "&8&m|----------------" in sidebar of loop-player to 7
                set score "&8&m|&r  &c&lHUB&7: &f%number of all players%" in sidebar of loop-player to 6
                if {_numKitPvP} is "<none>":
                        set score "&8&m|&r  &b&lKITPVP&7: &f0" in sidebar of loop-player to 5
                else:
                        set score "&8&m|&r  &b&lKITPVP&7: &f%{_numKitPvP}%" in sidebar of loop-player to 5
                if {_numCreative} is "<none>":
                        set score "&8&m|&r  &d&lCREATIVE&7: &f0" in sidebar of loop-player to 4
                else:
                        set score "&8&m|&r  &d&lCREATIVE&7: &f%{_numCreative}%" in sidebar of loop-player to 4
                if {numPrison} is "<none>":
                        set score "&8&m|&r  &6&lPRISON&7: &f0" in sidebar of loop-player to 3
                else:
                        set score "&8&m|&r  &6&lPRISON&7: &f%{_numPrison}%" in sidebar of loop-player to 3
                set score "&8&m|&r&8&m----------------" in sidebar of loop-player to 2
                set score "&8&m|&r  &fTrojan Network" in sidebar of loop-player to 1

Here is the error:
Code:
[15:39:01 ERROR]: #!#!
[15:39:01 ERROR]: #!#! Stack trace:
[15:39:01 ERROR]: #!#! ch.njol.skript.SkriptAPIException: No class info found for player'
[15:39:01 ERROR]: #!#!     at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:264)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1390)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1111)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:221)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:176)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.lang.Statement.parse(Statement.java:61)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:754)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.lang.Loop.<init>(Loop.java:68)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:790)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:513)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:271)
[15:39:01 ERROR]: #!#!     at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:167)
[15:39:01 ERROR]: #!#!     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
[15:39:01 ERROR]: #!#!     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
[15:39:01 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
[15:39:01 ERROR]: #!#!     at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627)
[15:39:01 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412)
[15:39:01 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
[15:39:01 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
[15:39:01 ERROR]: #!#!     at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
[15:39:01 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[15:39:01 ERROR]: #!#!
[15:39:01 ERROR]: #!#! Version Information:
[15:39:01 ERROR]: #!#!   Skript: 2.2-dev23
[15:39:01 ERROR]: #!#!   Bukkit: 1.8.8-R0.1-SNAPSHOT
[15:39:01 ERROR]: #!#!   Minecraft: 1.8.8
[15:39:01 ERROR]: #!#!   Java: 1.8.0_121 (Java HotSpot(TM) 64-Bit Server VM 25.121-b13)
[15:39:01 ERROR]: #!#!   OS: Mac OS X x86_64 10.11.5
[15:39:01 ERROR]: #!#!
[15:39:01 ERROR]: #!#! Running CraftBukkit: false
[15:39:01 ERROR]: #!#!
[15:39:01 ERROR]: #!#! Current node: set name of sidebar of loop-player to "&9&lHUB" (scripts.sk, line 1655)
[15:39:01 ERROR]: #!#! Current item: null
[15:39:01 ERROR]: #!#!
[15:39:01 ERROR]: #!#! Thread: Server thread
[15:39:01 ERROR]: #!#!
[15:39:01 ERROR]: #!#! End of Error.
[15:39:01 ERROR]: #!#!
[15:39:01 INFO]: [Skript] Successfully reloaded scripts.sk.

So, this doesn't work on KitPvP as I said above, but works on HUB without this error. Thanks for the help! <3
[doublepost=1500408930,1500331304][/doublepost]Bump
[doublepost=1500489000][/doublepost]bump
[doublepost=1500570306][/doublepost]Bump
 
idk what the error means but since you said it works on the hub server does the kitpvp server have the same skript version & addons & addon versions as the hub server?
 
I tried that before and it didn't work. Like, the same versions are on both servers.
[doublepost=1500912673,1500689563][/doublepost]Bump
[doublepost=1500999772][/doublepost]Bump :/ Just an idea would be nice :emoji_slight_smile:
[doublepost=1501082894][/doublepost]Please someone help me :/ Bump
[doublepost=1501171821][/doublepost]Bump
[doublepost=1501214300][/doublepost]This has been a VERY annoying error and I really need it fixed really soon. I would love to get a plugin for that, but I can't because a lot of the stats is from skript variables. Thanks
[doublepost=1501283985][/doublepost]Bump
[doublepost=1501339020][/doublepost]Bump :/ Please help, someone. This is really annoying me. Thanks.
[doublepost=1501440871][/doublepost]Bump! Is it maybe something to do with the skript file it is in? I'll check that later, but please someone help! Thanks :emoji_slight_smile:
 
@YoshYz, just tried that and it sends the same error message. Thanks for the suggestion though.
 
@YoshYz, sure. Here is the list: UmbaskaJava7.jar | skRayFall_v1.9.7.jar | SkQuery.jar | Skellet | MundoSK.jar Thanks :emoji_slight_smile:
 
k
[doublepost=1501526342,1501524076][/doublepost]So, I forgot to add one which was SkAction-2.2.jar, and it works! Thanks so so SO much for helping me. This thread has gone on for a while with no replies that helped until you came! Thanks a ton man! I really appreciate you helping me out! And just to make it clear, it was SkAction-2.2.jar which caused all of the trouble. Thanks :emoji_slight_smile:

~ LoneElf
 
k
[doublepost=1501526342,1501524076][/doublepost]So, I forgot to add one which was SkAction-2.2.jar, and it works! Thanks so so SO much for helping me. This thread has gone on for a while with no replies that helped until you came! Thanks a ton man! I really appreciate you helping me out! And just to make it clear, it was SkAction-2.2.jar which caused all of the trouble. Thanks :emoji_slight_smile:

~ LoneElf

Here you go! Good to hear that.
 
Status
Not open for further replies.