Skip to content

Support unloading scripts without loosing parsing info #7896

Open
@skgizsm

Description

@skgizsm

Suggestion

As of today the unload script effect for unloading a skript is no different from disabling it instead. Only with skript-reflect the unloading effect actually unloads the skripts without changing their file names, which is already very useful, but i would like to suggest that unloading a skript should unload it, but also keep the parse info so that it doesn’t have to re-parse when the file is loaded again (which takes quite a while and may cause lag spikes).

This would not conflict with changes in the file because if someone were to change the skript he would reload it anyways which parses it again.

In addition to this a /sk unload and /sk load command could be added, but this may be over the top and im personally only looking for the effect functionality.

Why?

I have a minigames server and would have found this quite useful for disabling certain minigames skripts that i can quickly enable again when needed without causing wait time or even lag spikes from re-parsing for no reason, especially when it is automatically done with skript.

Other

No response

Agreement

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurePull request adding a new feature.up for debateWhen the decision is yet to be debated on the issue in question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions