bossbar help

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

xbxy

Active Member
Jan 26, 2017
170
8
0
28
An error occurred using the following code

Code:
command /1:
    trigger:
        set {_bar} to new bossbar
        add player to bossbar {_bar}
        set the visibility of bossbar {_bar} to true
        visibility of bossbar {_bar}
        wait 2 seconds
        visible of bossbar {_bar}

Code:
>sk reload 1
[14:30:08 INFO]: [Skript] Reloading 1.sk...
[14:30:08 INFO]: [Skript] Successfully reloaded 1.sk.
[14:30:10 INFO]: xbxy issued server command: /1
[14:30:10 INFO]: xbxy [fa8f6f1c-40b1-38ae-9b35-d7396c30d4c8]: /1
[14:30:10 ERROR]: #!#! 
[14:30:10 ERROR]: #!#! [Skript] Severe Error:
[14:30:10 ERROR]: #!#! 
[14:30:10 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
[14:30:10 ERROR]: #!#! If you're a server admin however please go to https://github.com/bensku/Skript/issues/
[14:30:10 ERROR]: #!#! and check whether this error has already been reported.
[14:30:10 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
[14:30:10 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
[14:30:10 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
[14:30:10 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
[14:30:10 ERROR]: #!#! 
[14:30:10 ERROR]: #!#! Stack trace:
[14:30:10 ERROR]: #!#! java.lang.ClassCastException: org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer cannot be cast to java.lang.String
[14:30:10 ERROR]: #!#!     at net.rayfall.eyesniper2.skrayfall.bossbar.EffSetBossBar.execute(EffSetBossBar.java:37)
[14:30:10 ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:54)
[14:30:10 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:65)
[14:30:10 ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:93)
[14:30:10 ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:53)
[14:30:10 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:222)
[14:30:10 ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:184)
[14:30:10 ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:270)
[14:30:10 ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:165)
[14:30:10 ERROR]: #!#!     at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:35)
[14:30:10 ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[14:30:10 ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[14:30:10 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
[14:30:10 ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnection.handleCommand(PlayerConnection.java:1376)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnection.a(PlayerConnection.java:1189)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PacketPlayInChat.a(PacketPlayInChat.java:5)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.PlayerConnectionUtils$1.run(SourceFile:13)
[14:30:10 ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[14:30:10 ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.SystemUtils.a(SourceFile:46)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:821)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:403)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:749)
[14:30:10 ERROR]: #!#!     at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:648)
[14:30:10 ERROR]: #!#!     at java.lang.Thread.run(Thread.java:745)
[14:30:10 ERROR]: #!#! 
[14:30:10 ERROR]: #!#! Version Information:
[14:30:10 ERROR]: #!#!   Skript: 2.2-dev23
[14:30:10 ERROR]: #!#!   Bukkit: 1.11.2-R0.1-SNAPSHOT
[14:30:10 ERROR]: #!#!   Minecraft: 1.11.2
[14:30:10 ERROR]: #!#!   Java: 1.8.0_111 (OpenJDK 64-Bit Server VM 25.111-b15)
[14:30:10 ERROR]: #!#!   OS: Linux amd64 2.6.32-431.el6.x86_64
[14:30:10 ERROR]: #!#! 
[14:30:10 ERROR]: #!#! Running CraftBukkit: false
[14:30:10 ERROR]: #!#! 
[14:30:10 ERROR]: #!#! Current node: null
[14:30:10 ERROR]: #!#! Current item: null
[14:30:10 ERROR]: #!#! 
[14:30:10 ERROR]: #!#! Thread: Server thread
[14:30:10 ERROR]: #!#! 
[14:30:10 ERROR]: #!#! End of Error.
[14:30:10 ERROR]: #!#!


pl:
Code:
[14:41:31 INFO]: Stopping the server
[14:41:31 INFO]: Stopping server
[14:41:31 INFO]: [TuSKe] Disabling TuSKe v1.7
[14:41:31 INFO]: [Skellett] Disabling Skellett v1.7.9b
[14:41:31 INFO]: [skRayFall] Disabling skRayFall v1.9.7
[14:41:31 INFO]: [skRayFall] Bacon has been eaten. Make some more soon!
[14:41:31 INFO]: [Citizens] Disabling Citizens v2.0.21-SNAPSHOT (build 1470)
[14:41:31 INFO]: [SkStuff] Disabling SkStuff v1.6.4
[14:41:31 INFO]: [SkStuff] SkStuff 1.6.4 has been successfully disabled.
[14:41:31 INFO]: [ProtocolLib] Disabling ProtocolLib v4.2.1-SNAPSHOT-b346
[14:41:31 INFO]: [Vault] Disabling Vault v1.5.6-b49
[14:41:31 INFO]: [SkQuery] Disabling SkQuery v3.5.5-Lime
[14:41:31 INFO]: [skUtilities] Disabling skUtilities v0.8.9
[14:41:31 INFO]: [skDragon] Disabling skDragon v0.13.1
[14:41:31 INFO]: §3[§bskDragon§3] §aPlugin is now disabled. Most likely you shut down or reset your server
[14:41:31 INFO]: [SQLibrary] Disabling SQLibrary v7.1
[14:41:31 INFO]: SQLibrary stopped.
[14:41:31 INFO]: [Skript] Disabling Skript v2.2-dev23
[14:41:31 INFO]: [WorldEdit] Disabling WorldEdit v6.1.5;4651611
 
visibility of bossbar is an expression, not an effect. Also, you didn't put anything on the bossbar, you have to set the title AFAIK.
 
Status
Not open for further replies.