Skript

Skript

743k Downloads

Ignore variable save warning with RAM/Memory variables

ShaneBeee opened this issue ยท 2 comments

commented

Suggestion

I would like to suggest that the "variable save warning" be ignored when using RAM variables.
EX:
set {-e} to entity
will produce:

[11:01:49 INFO]: Line 16: (test.sk)
[11:01:49 INFO]:     an entity cannot be saved, i.e. the contents of the variable {-e} will be lost when the server stops.
[11:01:49 INFO]:     Line: set {-e} to entity

Since the variable will never be saved to file (ie: serialized) ... this warning should be ignored.

Why?

The warning is annoying when you specifically know the variable will never serialize and save to file.

Other

While I understand I can suppress this with suppress variable save warning it would be handy if Skript handled this internally!

Agreement

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

It'd probably be best to just fold this into a proper implementation of non-saving global variables.

commented

#5646 has this when using H2 ram variables.