Skip to content

Teleport Cause not working #1832

Closed
Closed
@ShaneBeee

Description

@ShaneBeee

Description

Teleport Cause is causing issues (hehe, see what I did there)
It is not registering the teleport causes

Steps to Reproduce

Code I tried

on teleport:
	if teleport cause is ender pearl:
		send "PEARL"
	if teleport cause is gateway:
		send "GATEWAY"
	if teleport cause is plugin:
		send "PLUGIN"

here is the console output when I reload

> sk reload test
[20:33:07 INFO]: [Skript] Reloading test.sk...
[20:33:07 ERROR]: Can't compare a teleport cause with an item type (test.sk, line 5: if teleport cause is ender pearl:')
[20:33:07 ERROR]: Can't compare a teleport cause with 'gateway' (test.sk, line 7: if teleport cause is gateway:')
[20:33:07 ERROR]: Can't compare a teleport cause with a damage cause (test.sk, line 9: if teleport cause is plugin:')
[20:33:07 INFO]: [Skript] Encountered 3 errors while reloading test.sk!

Expected Behavior

I expect it to load and recognize the teleport causes

Errors / Screenshots

See steps to reproduce

Server Information

  • Server version/platform: Paper version git-Paper-492 (MC: 1.13.2)
  • Skript version: Skript version 2.3.1

Additional Context

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions