Solved Could not pass event EntityDamageEvent

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

Whyismy

New Member
May 2, 2017
5
0
0
27
Im very new to skript and i just cant figure out why this keeps happening, I've tried reinstalling my spigot and skript multiple times, still getting this. Heres my simple error and the simple code.

[11:09:12] [Server thread/ERROR]: Could not pass event EntityDamageEvent to Skript v2.0.2
java.lang.NoSuchMethodError: org.bukkit.Bukkit.getOnlinePlayers()[Lorg/bukkit/entity/Player;
at ch.njol.skript.effects.EffBroadcast.execute(EffBroadcast.java:69) ~[?:?]
at ch.njol.skript.lang.Effect.run(Effect.java:50) ~[?:?]
at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60) ~[?:?]
at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:87) ~[?:?]
at ch.njol.skript.lang.Trigger.execute(Trigger.java:52) ~[?:?]
at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:135) ~[?:?]
at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:98) ~[?:?]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.craftbukkit.v1_9_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:89) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.craftbukkit.v1_9_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:570) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.craftbukkit.v1_9_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:556) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at org.bukkit.craftbukkit.v1_9_R2.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:602) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityLiving.damageEntity0(EntityLiving.java:1216) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityHuman.damageEntity0(EntityHuman.java:842) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityLiving.damageEntity(EntityLiving.java:827) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityHuman.damageEntity(EntityHuman.java:766) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityPlayer.damageEntity(EntityPlayer.java:493) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityLiving.e(EntityLiving.java:1081) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityHuman.e(EntityHuman.java:1527) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.Block.fallOn(Block.java:523) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.Entity.a(Entity.java:893) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityLiving.a(EntityLiving.java:174) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.EntityPlayer.a(EntityPlayer.java:651) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:639) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.PacketPlayInFlying.a(SourceFile:126) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.PacketPlayInFlying$PacketPlayInPositionLook.a(SourceFile:18) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_131]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_131]
at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:726) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564) [ServerJar.jar:git-Spigot-4af49dc-c5e9a16]
at java.lang.Thread.run(Unknown Source)

code_language.skript:
on damage:
    victim is player
    chance of 35%:
        broadcast "You started bleeding"

i cant even get this to work on a on damage event...
 
Status
Not open for further replies.