Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose required variable changes for save as a config option #6672

Open
1 task done
3Fendi3 opened this issue May 8, 2024 · 0 comments
Open
1 task done

Expose required variable changes for save as a config option #6672

3Fendi3 opened this issue May 8, 2024 · 0 comments
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Comments

@3Fendi3
Copy link

3Fendi3 commented May 8, 2024

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.
@sovdeeth sovdeeth added enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements). labels May 8, 2024
@sovdeeth sovdeeth changed the title Possibility of change of "REQUIRED_CHANGES_FOR_RESAVE" Expose required variable changes for save as a config option May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Projects
None yet
Development

No branches or pull requests

2 participants