Skip to content

Ephemeral variable 'can not be saved' #8023

@Jamonster123

Description

@Jamonster123

Skript/Server Version

[22:24:27 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[22:24:27 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[22:24:27 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[22:24:27 INFO]: [Skript] Server Version: 1.21.4-62aef5f (MC: 1.21.4)
[22:24:27 INFO]: [Skript] Skript Version: 2.11.2 (skriptlang-github)
[22:24:27 INFO]: [Skript] Installed Skript Addons: 
[22:24:27 INFO]: [Skript]  - PoaSk v4.12.5 (https://github.com/Ekpoa/PoaSkRewritev2)
[22:24:27 INFO]: [Skript]  - SkBee v3.12.1 (https://github.com/ShaneBeee/SkBee)
[22:24:27 INFO]: [Skript]  - skript-reflect v2.6 (https://github.com/SkriptLang/skript-reflect)
[22:24:27 INFO]: [Skript]  - DiSky v4.23.0
[22:24:27 INFO]: [Skript]  - skript-gui v1.3.1-jakegblp-Skript_2.10 (https://github.com/APickledWalrus/skript-gui)
[22:24:27 INFO]: [Skript] Installed dependencies: 
[22:24:27 INFO]: [Skript]  - SQLibrary v7.1

Bug Description

When using ephemeral variables, if you save an entity or display (or any other variable type that can not be saved across restarts), it will still send 'a display cannot be saved, i.e. the contents of the variable {-varname} will be lost when the server stops.' even though they will not get saved anyway, making the warning redundant.

Expected Behavior

Should not send the warning message

Steps to Reproduce

Set a new ephemeral variable to any text display or interaction (e.g. set {-temp6} to last spawned text display) in a skript and load it.

Errors or Screenshots

[22:27:44 INFO]: Line 161: (data.sk)
[22:27:44 INFO]: a display cannot be saved, i.e. the contents of the variable {-LeaderBoard::entity::CropTop} will be lost when the server stops.
[22:27:44 INFO]: Line: set {-LeaderBoard::entity::CropTop} to last spawned text display

Other

Thank you for making this plugin and letting people less knowledgable about coding make cool things, keep up the great work :)

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.completedThe issue has been fully resolved and the change will be in the next Skript update.

    Type

    No type

    Projects

    Status

    Done - Released

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions