Skript

Skript

743k Downloads

Expose required variable changes for save as a config option

3Fendi3 opened this issue ยท 0 comments

commented

Suggestion

There is currently (probably) no way to change this
Even though I use this code, it still doesn't work.
So I suggest you add an entry to your configuration for this or include this code in your activity

@Override public void onEnable() { try { Field field = FlatFileStorage.class.getDeclaredField("REQUIRED_CHANGES_FOR_RESAVE"); field.setAccessible(true); field.set(null, 1); } catch (Exception ex) { throw new RuntimeException(ex); } }

Why?

There may not always be enough actions in script variables to make it work.
Especially when the server is mostly built on plugins and add-ons in scripts

Other

No response

Agreement

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