#on death is being canceled

1 messages · Page 1 of 1 (latest)

signal cypress
#

Also, for some reason {_spawnpoint} is <none>...

#
on death:
  if victim is a player:
    if world is not "Bedwars" or "HideAndSeek" or "Creative":
      set {respawn::%victim%} to world

on respawn:
  if {respawn::%player%} is set:
    set {respawn::%player%} to {_spawnpoint}
    send "%{_spawnpoint}%" to player
hollow heart
#

try restarting the server

#

the variable is none because you never set it

signal cypress
#

I did

signal cypress
signal cypress
#
on death:
  if victim is a player:
    if world is not "Bedwars" or "HideAndSeek" or "Creative":
      set {respawn::%victim%} to world
hollow heart
#

you're setting {respawn::%player%} to {_spawnpoint}, but i think you might want it the other way around

signal cypress
#

That makes sense.

signal cypress
hollow heart
#

is there a plugin modifying the cmd?

signal cypress
hollow heart
hollow heart
#

also double check all your scripts to make sure the event isn't in any of them

signal cypress
#

I did /minecraft:kill

#

it canceled.

#

the owner is minecraft

#

@hollow heart

#

Should I just create a custom command /kill?

#

and see if that works?

#

I tried it

#

it still got canceled.

hollow heart
#

ctrl + f and then type "kill" for every skript you have

signal cypress
#

there is no kill, on death

#

absolutely no reason to be doing it.

#

This is respawn.sk

on death:
  if victim is a player:
    if world is not "Bedwars" or "HideAndSeek" or "Creative":
      set {respawn::%victim%} to world

on respawn:
  if {respawn::%player%} is set:
    set {_spawnpoint} to {respawn::%player%}
    send "%{_spawnpoint}%" to player
#

Just seeing if you are alive...

I am ok with being pinged... @hollow heart

#

Can you believe my luck? You go offline the second I hit send.

#

And you're back! : )

hollow heart
#

when you die

signal cypress
hollow heart
#

try doing /sk reload scripts

#

@signal cypress

signal cypress
#

I think it might be a bug or something.

#

I'm going to remove the skript plugin and put it back.
Any advice?

hollow heart
#

do that, then see if it still cancels

signal cypress
#

I call this the Ghost Skript Glitch

#

I've made a discovery. I removed all of my scripts from the folder and deleted them.

#

I reloaded the entire plugin

#

and then /kill'd myself

#

IT CANCELED

#

With no scripts, it cancels

#

with scripts it cancels

#

but with no Skript.jar, it doesn't cancel.

#

Should I report this on Github?

lucid raft
#

@signal cypress /sk disable <script> before deleting, otherwise its still loaded but not present in the scripts folder

signal cypress
lucid raft
#

You cant reload the skript plugin

signal cypress
lucid raft
#

In that case it will unload all scripts in the folder

#

And load them

#

But since your deleted script is not in the folder its exempt

signal cypress
#

on death is being canceled

lucid raft
#

Actually you should report it if /sk reload all doesnt fix it

#

Not user friendly

signal cypress
lucid raft
#

It should disable the script and fix your problem, but it doesn't

signal cypress
#

but it still cancels the death event

hollow heart
#

you said you've already tried removing the skript jar, right?

#

if you did, did you restart (not reload) your server?

signal cypress
lofty skiff
signal cypress
#

I submitted a bug report.

signal cypress
#

when it shouldnt be

lofty skiff
#

how do you know this

signal cypress
#

Because I didnt tell skript to cancel the event

lofty skiff
#

no how do you know skript is cancelling it

#

and not something else

signal cypress
lofty skiff
#

to my knowledge skript literally doesn't register events you don't use

#

(so it can't cancel them)

#

can you try to reproduce it on a completely fresh server?

signal cypress
lofty skiff
#

(with no plugins besides Skript and no scripts besides what is absolutely necessary)

lofty skiff
#

try removing your on damage event

hollow heart
signal cypress
lofty skiff
signal cypress
signal cypress
hollow heart
#

found it

signal cypress
signal cypress
#

watch the vid

lofty skiff
#

i saw

signal cypress
#

k

signal cypress
lofty skiff
#

i've responded on the github issue :)

signal cypress
#

K

signal cypress
#

So @lofty skiff if it isn't a problem with skript, and I can't seem to find the cause. Only that removing skript fixes it, then how can I solve this?

hollow heart
#

disable every script, then enable them 1 by 1, doing /kill every time you enable a new script

signal cypress
signal cypress
#

do I delete the script folder? I would save the skripts ofc

sharp gate
#

Did I smell bugs

signal cypress
sharp gate
#

Good

#

Download skript reflect

signal cypress
sharp gate
#

I would like to grab some info using skript reflect

signal cypress
#

like instead of skript?

#

or as an addon

sharp gate
#

It is an addon

#

Ping me once you are done, I have the debug code ready

signal cypress
#

ok. Would it stop skript from canceling death?

sharp gate
#

It will give out more info on which plugin is handling the event

#

And I would like to see it

sharp gate
signal cypress
signal cypress
sharp gate
#
on death:
    broadcast "&7%event.getEventName()% &risCancelled %event.isCancelled()%"
    scan(event)

function scan(event: object):
    set {_hdl} to {_event}.getHandlers()
    set {_reg::*} to ...({_hdl}.getRegisteredListeners())
    loop {_reg::*}:
        add 1 to {_n}
        send "%{_n}%. %loop-value.getPlugin()%: Priority: %loop-value.getPriority()%; ignoreCancel: %loop-value.isIgnoringCancelled()%" to console
signal cypress
#

Ok. Thanks. I'll add it when I wake. Gn

lofty skiff
#

that's very clever cheesy :)

signal cypress
#

@sharp gate I'm gonna test it. Should I send a screenshot of what broadcasts if any? Or should I paste the console output?

#

I died when doing /kill for the first time in a day.

#

Finnally

#

*Finally

signal cypress
signal cypress
# signal cypress

@hollow heart Do you know what could be causing the death event to be canceled?

signal cypress
hollow heart
#

idk sry

signal cypress
sharp gate
signal cypress
#

I'll try without just to try

sharp gate
#

That code changes nothing, it just to print out additional info

#

And that is a handful of plugins kek

signal cypress
signal cypress
sharp gate
signal cypress
sharp gate
#

Turn this into a plugin LOL

#

ezpz

#

It may help more if this is put into a plugin, that way we can debug Skript itself too

signal cypress
#

It appears to only happen in certain worlds...

#

And you were correct...

#

The script you gave did no effect on it...

sharp gate
#

(Based on the report) Skript is handing the death event at Normal Priority and it can't detect cancelled events, if anything has a higher priority, those will take over
CombatLogX has the monitor priority, aka the HIGHEST among all

#

The logic is: Any plugins with a higher priority will be able to take over the event behaviour

signal cypress
sharp gate
#

You can't change that, the developers made them the highest among all

signal cypress
#

I can't extract it and edit with vscode? or something?

sharp gate
#

You would need to clone their source code into an editor (i.e IntelliJ)

signal cypress
#

idk java very well... So I would need help...

sharp gate
#

I wouldn't change their code

signal cypress
#

ok

sharp gate
#

Well you should try again without CombatLogX on those worlds, and see if the issue is gone

signal cypress
#

ok. I can say rn that i had a script that checked the world you are in and based off that canceled the death event...

I removed that and it is still goin...

Let me remove CombatLogX

sharp gate
#

And look, they have 3 xD

signal cypress
#

why do they need 3?

sharp gate
#

Means they have 3 listeners for PlayerDeathEvent

signal cypress
#

they dont need it... They can just use the same one...

sharp gate
#

Well everyone has a reason

#

Mooshing all in one listener is not preferred on some cases kek

signal cypress
#

I see.

So the problem is with worldgaurd

#

I can die outside of regions

#

not inside them...

#

but that shouldn't effect /kill

#

should it?

sharp gate
#

Can confirm, if CombatLogX is not taken into consideration

sharp gate
signal cypress
#

how can I override that and put the /kill back to normal?

sharp gate
#

If you do set health of player to 0, you outsmarted their event listeners for some reason LOL

signal cypress
#

ok ill make a custom /kill cmd

sharp gate
#

kek

sharp gate
#

Nevertheless, I'm glad the main cause was found, although my code only provided the listeners information to help us investigate

#

Don't forget to add a tag to this thread "✅ Resolved"

signal cypress
sharp gate
#

/rg info <region>

signal cypress
#

thanks