#on death is being canceled
1 messages · Page 1 of 1 (latest)
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
I did
The problem continued.
it is set when the player dies...
on death:
if victim is a player:
if world is not "Bedwars" or "HideAndSeek" or "Creative":
set {respawn::%victim%} to world
you're setting {respawn::%player%} to {_spawnpoint}, but i think you might want it the other way around
That makes sense.
Works now... So now lets focus on the main problem.
/kill isn't working.
is there a plugin modifying the cmd?
Nope. I haven't added/updated a plugin since yesterday and /kill was working. Until I started to cancel the event. Even after removing the code to cancel it still cancels...
try getting the plugin owner of the command https://skripthub.net/docs/?id=6321
???
also double check all your scripts to make sure the event isn't in any of them
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.
do this
ctrl + f and then type "kill" for every skript you have
I did
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
This is skript.sk
This is QuickSwap.sk
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! : )
does it send you anything?
when you die
I can't die... Not unless I use the void. When I respawn it tells me what world I died in. (unless its bedwars hideandseek or creative)
I did. I even did /sk reload all
I think it might be a bug or something.
I'm going to remove the skript plugin and put it back.
Any advice?
do that, then see if it still cancels
Nope. Doesn't cancel when I remove Skript.
Definitely some problem with skript.
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?
@signal cypress /sk disable <script> before deleting, otherwise its still loaded but not present in the scripts folder
even when you reload the skript plugin?
You cant reload the skript plugin
sure you can
/skript reload all
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
grammer is so bad I can't understand it.. Sry
on death is being canceled
ok. What is not user friendly?
It should disable the script and fix your problem, but it doesn't
well, it does disable the script
but it still cancels the death event
you said you've already tried removing the skript jar, right?
if you did, did you restart (not reload) your server?
I did restart the server
yep
if removing the skript plugin and restarting doesn't fix it then it's not a skript issue
I submitted a bug report.
The problem is skript is cancelling it
when it shouldnt be
how do you know this
Because I didnt tell skript to cancel the event
because I removed skript and the problem stopped
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?
I don't have time to make a completely fresh server.
(with no plugins besides Skript and no scripts besides what is absolutely necessary)
Here are the skripts
try removing your on damage event
are those all of your skripts on your server?
Plugins
.
Yes. I have no other ones
bet
found it
i saw
k
For anyone not going to watch the vid, it shows that removing the damage event did not work. Problem still exists.
i've responded on the github issue :)
K
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?
disable every script, then enable them 1 by 1, doing /kill every time you enable a new script
Did that... still happens every time ðŸ˜
do I delete the script folder? I would save the skripts ofc
Did I smell bugs
Yes you did
skript reflect?
I would like to grab some info using skript reflect
ok. Would it stop skript from canceling death?
It will give out more info on which plugin is handling the event
And I would like to see it
Well, using my code, I have it ready
I won't be able to tonight. It is 11:00PM
I'm heading to bed soon. Ill ping you when I wake. Or if I wake up early...
alr. Send it now so I can look later...
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
Ok. Thanks. I'll add it when I wake. Gn
that's very clever cheesy :)
@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
pinged...
Don't worry, this msg has ping off cause I already pinged him
@hollow heart Do you know what could be causing the death event to be canceled?
This is the skript I used. It uses skript reflect
idk sry
alr
Is the death still cancelling?
No. Not with that code.
I'll try without just to try
That code changes nothing, it just to print out additional info
And that is a handful of plugins kek
With the code you put, It does not cancel. Without it, it does cancel
It's a big server
Now that is just pure bs
I'll send a video
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
It appears to only happen in certain worlds...
And you were correct...
The script you gave did no effect on it...
(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
ok. So does combotlogx need the priority?
You can't change that, the developers made them the highest among all
I can't extract it and edit with vscode? or something?
You would need to clone their source code into an editor (i.e IntelliJ)
idk java very well... So I would need help...
I wouldn't change their code
ok
Well you should try again without CombatLogX on those worlds, and see if the issue is gone
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
And look, they have 3 xD
why do they need 3?
Means they have 3 listeners for PlayerDeathEvent
they dont need it... They can just use the same one...
Well everyone has a reason
Mooshing all in one listener is not preferred on some cases kek
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?
Can confirm, if CombatLogX is not taken into consideration
It should anyway, unless the command does something stupid to kill an entity
how can I override that and put the /kill back to normal?
If you do set health of player to 0, you outsmarted their event listeners for some reason LOL
ok ill make a custom /kill cmd
kek
You sure your regions allows deaths? There are flags for it
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"
Without it, I probably would never have figured it out.
1 more question. How can I view flags for regions?
/rg info <region>
thanks