Solved Skript Has Seriously F-ed Up.

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

WallyTube

New Member
Aug 17, 2019
5
0
0
27
This is my Skript. I have 2 addon plugins installed: SkBee + Skrayfall. When I kill a mob with a projectile, everything works fine. If I kill a mob with an item like a sword, axe, or even a gold ingot, it doesn't register. I have tried debugging it. I can see broadcast messages in chat, but no holograms show up, and no coins get added to my account ({stats::gold::%player's uuid%}).

This Is My Skript:
Code:
on death:
    set {_rnd} to random integer between 2 and 6
    create hologram "&6+%{_rnd}% &6Gold" at location 1 meter above event-location for 25 ticks
    add {_rnd} to {stats::gold::%attacker's uuid%}
    set {_rnd2} to a random integer between 1 and 5
    add {_rnd2} to {stats::Cxp::%attacker's uuid%}
    if {stats::Cxp::%attacker's uuid%} >= {stats::CLevel::%attacker's uuid%} * 100 + 10:
        send "&CYou leveled up Combat!" to attacker
        add 1 to {stats::CLevel::%attacker's uuid%}

This Is The Console Logs:
Code:
[18:44:47] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[18:44:47] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[18:44:47] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[18:44:47] [Server thread/ERROR]: #!#! Here is full list of them:
[18:44:47] [Server thread/ERROR]: #!#! skRayFall v1.9.20 (https://sk.rayfall.net/) SkBee v1.1.0
[18:44:47] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[18:44:47] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[18:44:47] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[18:44:47] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[18:44:47] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[18:44:47] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Stack trace:
[18:44:47] [Server thread/ERROR]: #!#! java.lang.NullPointerException: source cannot be null
[18:44:47] [Server thread/ERROR]: #!#!     at com.gmail.filoghost.holographicdisplays.util.Validator.notNull(Validator.java:21)
[18:44:47] [Server thread/ERROR]: #!#!     at com.gmail.filoghost.holographicdisplays.object.DefaultBackendAPI.createHologram(DefaultBackendAPI.java:38)
[18:44:47] [Server thread/ERROR]: #!#!     at com.gmail.filoghost.holographicdisplays.api.HologramsAPI.createHologram(HologramsAPI.java:46)
[18:44:47] [Server thread/ERROR]: #!#!     at net.rayfall.eyesniper2.skrayfall.holograms.EffTimedHologram.execute(EffTimedHologram.java:62)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:156)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:114)
[18:44:47] [Server thread/ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[18:44:47] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[18:44:47] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607)
[18:44:47] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:759)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.d(EntityLiving.java:1380)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.die(EntityLiving.java:1308)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity(EntityLiving.java:1152)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityMonster.damageEntity(EntityMonster.java:52)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.Entity.entityBaseTick(Entity.java:423)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.entityBaseTick(EntityLiving.java:244)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityInsentient.entityBaseTick(EntityInsentient.java:225)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.Entity.tick(Entity.java:385)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.tick(EntityLiving.java:2334)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityInsentient.tick(EntityInsentient.java:288)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.WorldServer.entityJoinedWorld(WorldServer.java:769)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.World.a(World.java:862)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.WorldServer.doTick(WorldServer.java:504)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1245)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:430)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934)
[18:44:47] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Version Information:
[18:44:47] [Server thread/ERROR]: #!#!   Skript: 2.4.1-MH (custom version)
[18:44:47] [Server thread/ERROR]: #!#!     Flavor: selfbuilt-unknown
[18:44:47] [Server thread/ERROR]: #!#!     Date: unknown
[18:44:47] [Server thread/ERROR]: #!#!   Bukkit: 1.15.2-R0.1-SNAPSHOT
[18:44:47] [Server thread/ERROR]: #!#!   Minecraft: 1.15.2
[18:44:47] [Server thread/ERROR]: #!#!   Java: 1.8.0_212 (OpenJDK 64-Bit Server VM 25.212-b04)
[18:44:47] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.19.102+
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Server platform: Paper
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Current node: null
[18:44:47] [Server thread/ERROR]: #!#! Current item: null
[18:44:47] [Server thread/ERROR]: #!#! Current trigger: death (death/spawn) (damage.sk, line 10)
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Thread: Server thread
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Language: english
[18:44:47] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! End of Error.

All My Plugins: Essentials, HolographicDisplays, Skript, Skrayfall, Skbee
My Server Host: Minehut

Side Note: I have tried uninstalling skbee. Doesn't seem to change much.
 
This is my Skript. I have 2 addon plugins installed: SkBee + Skrayfall. When I kill a mob with a projectile, everything works fine. If I kill a mob with an item like a sword, axe, or even a gold ingot, it doesn't register. I have tried debugging it. I can see broadcast messages in chat, but no holograms show up, and no coins get added to my account ({stats::gold::%player's uuid%}).

This Is My Skript:
Code:
on death:
    set {_rnd} to random integer between 2 and 6
    create hologram "&6+%{_rnd}% &6Gold" at location 1 meter above event-location for 25 ticks
    add {_rnd} to {stats::gold::%attacker's uuid%}
    set {_rnd2} to a random integer between 1 and 5
    add {_rnd2} to {stats::Cxp::%attacker's uuid%}
    if {stats::Cxp::%attacker's uuid%} >= {stats::CLevel::%attacker's uuid%} * 100 + 10:
        send "&CYou leveled up Combat!" to attacker
        add 1 to {stats::CLevel::%attacker's uuid%}

This Is The Console Logs:
Code:
[18:44:47] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[18:44:47] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[18:44:47] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[18:44:47] [Server thread/ERROR]: #!#! Here is full list of them:
[18:44:47] [Server thread/ERROR]: #!#! skRayFall v1.9.20 (https://sk.rayfall.net/) SkBee v1.1.0
[18:44:47] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[18:44:47] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[18:44:47] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[18:44:47] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[18:44:47] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[18:44:47] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Stack trace:
[18:44:47] [Server thread/ERROR]: #!#! java.lang.NullPointerException: source cannot be null
[18:44:47] [Server thread/ERROR]: #!#!     at com.gmail.filoghost.holographicdisplays.util.Validator.notNull(Validator.java:21)
[18:44:47] [Server thread/ERROR]: #!#!     at com.gmail.filoghost.holographicdisplays.object.DefaultBackendAPI.createHologram(DefaultBackendAPI.java:38)
[18:44:47] [Server thread/ERROR]: #!#!     at com.gmail.filoghost.holographicdisplays.api.HologramsAPI.createHologram(HologramsAPI.java:46)
[18:44:47] [Server thread/ERROR]: #!#!     at net.rayfall.eyesniper2.skrayfall.holograms.EffTimedHologram.execute(EffTimedHologram.java:62)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Effect.run(Effect.java:52)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:156)
[18:44:47] [Server thread/ERROR]: #!#!     at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:114)
[18:44:47] [Server thread/ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80)
[18:44:47] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[18:44:47] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607)
[18:44:47] [Server thread/ERROR]: #!#!     at org.bukkit.craftbukkit.v1_15_R1.event.CraftEventFactory.callEntityDeathEvent(CraftEventFactory.java:759)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.d(EntityLiving.java:1380)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.die(EntityLiving.java:1308)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.damageEntity(EntityLiving.java:1152)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityMonster.damageEntity(EntityMonster.java:52)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.Entity.entityBaseTick(Entity.java:423)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.entityBaseTick(EntityLiving.java:244)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityInsentient.entityBaseTick(EntityInsentient.java:225)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.Entity.tick(Entity.java:385)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityLiving.tick(EntityLiving.java:2334)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.EntityInsentient.tick(EntityInsentient.java:288)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.WorldServer.entityJoinedWorld(WorldServer.java:769)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.World.a(World.java:862)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.WorldServer.doTick(WorldServer.java:504)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.b(MinecraftServer.java:1245)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:430)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:1112)
[18:44:47] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:934)
[18:44:47] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Version Information:
[18:44:47] [Server thread/ERROR]: #!#!   Skript: 2.4.1-MH (custom version)
[18:44:47] [Server thread/ERROR]: #!#!     Flavor: selfbuilt-unknown
[18:44:47] [Server thread/ERROR]: #!#!     Date: unknown
[18:44:47] [Server thread/ERROR]: #!#!   Bukkit: 1.15.2-R0.1-SNAPSHOT
[18:44:47] [Server thread/ERROR]: #!#!   Minecraft: 1.15.2
[18:44:47] [Server thread/ERROR]: #!#!   Java: 1.8.0_212 (OpenJDK 64-Bit Server VM 25.212-b04)
[18:44:47] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.19.102+
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Server platform: Paper
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Current node: null
[18:44:47] [Server thread/ERROR]: #!#! Current item: null
[18:44:47] [Server thread/ERROR]: #!#! Current trigger: death (death/spawn) (damage.sk, line 10)
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Thread: Server thread
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! Language: english
[18:44:47] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[18:44:47] [Server thread/ERROR]: #!#!
[18:44:47] [Server thread/ERROR]: #!#! End of Error.

All My Plugins: Essentials, HolographicDisplays, Skript, Skrayfall, Skbee
My Server Host: Minehut

Side Note: I have tried uninstalling skbee. Doesn't seem to change much.
Don't use Skrayfall for holograms. Use skript-holo:
https://forums.skunity.com/resources/skript-holo.748/
 
Code:
on death:
    set {_rnd} to random integer between 2 and 6
    create a new hologram with line "&6+%{_rnd}% &6Gold" at location 1 meter above event-location and store in {mob.g.%attacker%}
    add {_rnd} to {stats::gold::%attacker's uuid%}
    wait 20 ticks
    delete holo {mob.g.%attacker%}

Regardless of the holos, it still doesnt activate when I kill the mob with melee weapons
 
Code:
on death:
    set {_rnd} to random integer between 2 and 6
    create a new hologram with line "&6+%{_rnd}% &6Gold" at location 1 meter above event-location and store in {mob.g.%attacker%}
    add {_rnd} to {stats::gold::%attacker's uuid%}
    wait 20 ticks
    delete holo {mob.g.%attacker%}

Regardless of the holos, it still doesnt activate when I kill the mob with melee weapons
You should probably specify that the attacker is a player at the beginning of the event.
code_language.skript:
on death:
    attacker is a player
Make debug messages to check what is and is not working.

Also your using the same ID for every holo that appears per player. You probably want to make a hologram with a unique id for each holo thats spawned instead of one 1 ID for holos. This will be weird and buggy if using only one ID for holos.
 
Last edited:
So I did some digging and debugging. Turns out On Death: and On Damage: events can't find the event-location or event-entity. This would explain why I didn't see holograms pop up, or messages get sent to myself. I'm not sure when this issue started occurring, but I do know It is not an addon's fault. I uninstalled skript-holo, skbee, and skrayfall, and it still didnt make a difference.

The Code I Inserted:
Code:
    set {damager.%attacker%} to the attacker
    send "&cEvent-World: &f%event-world% &b, Event-Entity: &f%event-entity%&b, Event-Location: &f%event-location%" to {damager.%attacker%}

The Results I Got When Killing A Spider, Husk, Zombie, Skeleton, And Rabbit:
unknown.png


I am going to leave this discussion open until I get more replies on fixes, or alternatives until the problem is resolved.
 
So I did some digging and debugging. Turns out On Death: and On Damage: events can't find the event-location or event-entity. This would explain why I didn't see holograms pop up, or messages get sent to myself. I'm not sure when this issue started occurring, but I do know It is not an addon's fault. I uninstalled skript-holo, skbee, and skrayfall, and it still didnt make a difference.

The Code I Inserted:
Code:
    set {damager.%attacker%} to the attacker
    send "&cEvent-World: &f%event-world% &b, Event-Entity: &f%event-entity%&b, Event-Location: &f%event-location%" to {damager.%attacker%}

The Results I Got When Killing A Spider, Husk, Zombie, Skeleton, And Rabbit:
unknown.png


I am going to leave this discussion open until I get more replies on fixes, or alternatives until the problem is resolved.
Why don't you just get the location of the victim?
code_language.skript:
on death:
    attacker is a player
    broadcast "%location of victim%"

In damage and death events, attacker represents the one who dealt the damage or killed, and victim is the one who received damage or died.
 
Status
Not open for further replies.