-
-
Notifications
You must be signed in to change notification settings - Fork 403
Open
Labels
bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.An issue that needs to be fixed. Alternatively, a PR fixing an issue.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.Issues that are not harmful to the experience but are related to useful changes or additions.
Description
Skript/Server Version
[09:17:07] [Server thread/INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[09:17:07] [Server thread/INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[09:17:07] [Server thread/INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[09:17:07] [Server thread/INFO]: [Skript] Server Version: 1.21.7-32-e792779 (MC: 1.21.7)
[09:17:07] [Server thread/INFO]: [Skript] Skript Version: 2.12.0 (skriptlang-github)
[09:17:07] [Server thread/INFO]: [Skript] Installed Skript Addons: None
[09:17:07] [Server thread/INFO]: [Skript] Installed dependencies:
[09:17:07] [Server thread/INFO]: [Skript] - WorldGuard v7.0.14+2339-43997ec
Bug Description
Given this simple script:
on damage:
if damage cause is world border:
broadcast damage cause
cancel event
...when executing /sk reload scripts
, the following error appears:
[09:18:23] [Server thread/INFO]: Can't compare 'if damage cause' with a worldborder
[09:18:23] [Server thread/INFO]: Line: if damage cause is world border:
and the script won't execute
Expected Behavior
The damage cause can be compared with world border
, as that's what's shown in the documentation
Steps to Reproduce
- Create a new script with the following content:
on damage:
if damage cause is world border:
broadcast damage cause
cancel event
- Run
/sk reload scripts
as operator/console - Observe the error message
Alternatively, I have also tried:
on damage:
damage cause is world border:
broadcast damage cause
cancel event
and:
on damage:
damage cause is world border
broadcast damage cause
cancel event
...but to no avail:
[09:22:07] [Server thread/INFO]: Can't compare a damage cause with a worldborder
[09:22:07] [Server thread/INFO]: Line: damage cause is world border
Errors or Screenshots
[09:18:23] [Server thread/INFO]: Can't compare 'if damage cause' with a worldborder
[09:18:23] [Server thread/INFO]: Line: if damage cause is world border:
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.
Metadata
Metadata
Assignees
Labels
bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.An issue that needs to be fixed. Alternatively, a PR fixing an issue.priority: lowIssues that are not harmful to the experience but are related to useful changes or additions.Issues that are not harmful to the experience but are related to useful changes or additions.