Skip to content
Owen edited this page May 12, 2024 · 6 revisions

Why are my variables not synced?

There may be multiple reasons for this, but the most common solutions are:

  • 1. Making sure your SyncedEntry variables are not prefixed with the static keyword.
  • 2. Referencing via .Instance and not through other means.
// GOOD
if (MyConfig.Instance.EXAMPLE_VAR)

// BAD
if (MyConfig.Default.EXAMPLE_VAR)
if (Plugin.MyConfig.EXAMPLE_VAR)
  • 3. Only using synced variables once the sync has completed.
    • Use the SyncComplete event if necessary.

If none of these address your problem, please make an issue as it could possibly be a bug.

Where can I get further support?

If your problem is not covered here or remains unfixed, please join the discord and send a message in the #support channel!