Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[SOLVED] Annotation based configs change and save value


Recommended Posts



I know this might sound stupid but I would need to change some of my config values from other locations than the default config gui.
My research has shown that I need the property, but with the new annotation based configs I am unable to find a way to get them (at least without reflections).

Is there maybe a way to change these values without reflections?


Thanks in advance.

Edited by JTK222
Link to comment
Share on other sites

Change the value of the field and then call ConfigManager.sync to synchronise the fields and the Configuration properties.


This will iterate through every field and use ConfigManager.shouldReadFromVar to decide whether the property should be set to the field's value (true) or the field should be set to the property's value (false).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.