Skip to content

Can't change the damage anymore after the event has already passed #8203

@TheLimeGlass

Description

@TheLimeGlass

Skript/Server Version

2.12.2

Bug Description

Getting an error that says I cannot change the damage after the damage event has already happened.

Expected Behavior

To allow me to change the damage when the event hasn't been delayed.

Steps to Reproduce

options:
	world: "lobby"
	
on damage of player:
	world of victim is {@world}
	if damage cause is void:
		teleport victim to spawn of world {@world}
		cancel event
		stop
	if damage cause is fall:
		cancel event
		stop
	set damage to 0

Errors or Screenshots

[00:21:46 INFO]: [Skript] Line 13: (test.sk)
[00:21:46 INFO]:     Can't change the damage anymore after the event has already passed
[00:21:46 INFO]:     Line: set damage to 0

Other

It seems to be from the teleport effect. Probably because it can teleport players async if paper is used.
It shouldn't be blocking, effects don't return.

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions