Skip to content

on unload is called after functions are unloaded #8233

@erenkarakal

Description

@erenkarakal

Skript/Server Version

 [Skript] Server Version: 1.21.8-53-704107c (MC: 1.21.8)
 [Skript] Skript Version: 2.12.2 (selfbuilt-unknown)
 [Skript] Installed Skript Addons:
 [Skript]  - skript-reflect v2.6.1 (https://github.com/SkriptLang/skript-reflect)
 [Skript]  - skript-io v1.0.0
 [Skript]  - SkCheese v1.7
 [Skript] Installed dependencies: None

Bug Description

[Skript] Reloading pr.sk...
     Couldn't resolve call for 'a'.
     Encountered 1 error while reloading pr.sk! (11ms)

Expected Behavior

should broadcast "works"

Steps to Reproduce

function a():
  broadcast "works"

on unload:
  a()

Errors or Screenshots

No response

Other

No response

Agreement

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR availableIssues which have a yet-to-be merged PR resolving itbugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions