Skript

Skript

743k Downloads

Cancel Event Bug

Mav124004 opened this issue ยท 1 comments

commented

Skript/Server Version

[Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[Skript] Server Version: git-Paper-550 (MC: 1.19.4)
[Skript] Skript Version: 2.8.7 (skriptlang-github)
[Skript] Installed Skript Addons: None
[Skript] Installed dependencies: None

Bug Description

In the script below, the event should be canceled when the player right-clicks on an NPC named "kowal". However, the event is not being canceled despite the conditions being met.

In both script examples, the event should be canceled

EXAMPLE 1

on right click:
if "%target entity of player%" is "kowal":
cancel event
kowal(player)

EXAMPLE 2

on right click:
if player is not wearing a helmet:
cancel event
if player is not wearing a chestplate:
cancel event
if player is not wearing a leggings:
cancel event
if player is not wearing a boots:
cancel event
if "%target entity of player%" is "kowal":
kowal(player)

Expected Behavior

In both script examples, the event should be canceled

Steps to Reproduce

sk-bug.mp4

Errors or Screenshots

No response

Other

No response

Agreement

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

I was not able to reproduce your bug, is it still happening on the newest version of Skript?