Skip to content

Player parsed successfully in an EntitySpawnEvent #7650

Open
@TheLimeGlass

Description

@TheLimeGlass

Skript/Server Version

[22:33:53 INFO]: [Skript] Server Version: 1.21.4-144-edacfdf (MC: 1.21.4)
[22:33:53 INFO]: [Skript] Skript Version: 2.10.1 (selfbuilt-unknown)
[22:33:53 INFO]: [Skript] Installed Skript Addons:
[22:33:53 INFO]: [Skript]  - skript-reflect v2.6 (https://github.com/SkriptLang/skript-reflect)
[22:33:53 INFO]: [Skript]  - SkQuery v4.3.1
[22:33:53 INFO]: [Skript]  - Fawesk v2.2
[22:33:53 INFO]: [Skript]  - Sky v1.1.0
[22:33:53 INFO]: [Skript] Installed dependencies:
[22:33:53 INFO]: [Skript]  - WorldGuard v7.0.13-beta-2+5c4848b

Bug Description

There is no player in the EntitySpawnEvent unless by a spawn egg.

Skript is parsing the entity as a player when it shouldn't be.

Expected Behavior

To throw an error saying there is no Player object present in the event.

Steps to Reproduce

on spawn:
    message "test" to the player

Errors or Screenshots

No response

Other

Similar issue which this solves #5663

There is also a check to ensure that player entities cannot be spawned when used in the on spawn of a player

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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions