DUXPLIMA Documentation

Upgrading to 2.2.0

What to check before moving a 2.1.x server to uxmDiscordSync 2.2.0, and what behaves differently afterwards.

Your files carry over. On the first start the plugin copies the old files into backups/backup-<number>/, adds new settings with their defaults, and removes settings that no longer do anything. Values you changed are kept.

Before you start

  1. Back up plugins/uxmDiscordSync/ and your database.
  2. If several servers use the same bot or the same database, update them all at the same time. A server that finds a newer version on the shared database does not start.
  3. Replace the jar and start the server. Read the console: every setting the upgrade changed on its own is named there.

Going back is not supported. Once 2.2.0 has written the files, an older jar refuses to start on them.

Changed for you on the first start

SettingWhat happens
multi-server.enabled: true without a redis sectionTurned off. It did nothing before 2.2.0, and left on it would now stop the server from answering Discord. See Multi-server to set it up for real
two-factor.ip-whitelist still the old default listEmptied. Its ranges never matched before, and now that they do they would let every player behind a local proxy skip 2FA
commands.admin.aliases still [uxmdiscordsync]dsadmin is added as a shorter name
localization.languageRemoved. The language has always come from plugin.language

Removed

RemovedWhy, or what replaces it
Punishment sync and punishment-sync.ymlIt was never connected to anything and did nothing
/2fa and commands.twofactorThe command did nothing. 2FA needs no command
two-factor.freeze-playerA player waiting for 2FA is always frozen. freeze-restrictions choose what they cannot do
multi-server.link-modeA link always counts on every server. separate is refused with a warning
boost-rewards.yml: send-discord-message, notification-channel-idUse the boost-claim audit log
discord.linking.notification-channel-idUse the account-link audit log
embeds.colorsEvery embed has its own color
plugin.auto-save-interval, localization.formats.date and .timeNothing read them
advanced.yml: async, performance, cache.cache-linked-accounts, the retry settings, cleanup.delete-old-logs-after-daysNothing read them. Webhook retries are now discord.webhooks.max-retries and retry-delay

What behaves differently

Area2.1.x2.2.0
First-link rewardsPaid again when a Discord account linked to another Minecraft accountPaid once per Minecraft account and once per Discord account, ever
post-link-commands in rank-sync.ymlNever ranRun on the first link, for the highest-priority rank the player has
UnlinkingLinked roles stayedLinked roles and synced rank roles are removed, and post-unlink-commands also run for an offline player
Several servers on one botEvery server answered every clickOne server answers, through Redis
/broadcastSent to the server that caught itTakes a server option and is sent to that server only
Level XPEvery memberOnly linked members, unless linked-only: false
Voice XPAnyone in a listed channelNot while deafened, alone or in the AFK channel
Levels missing from xp-per-levelCounted from zero with the formulaCounted on from the nearest listed level below
2FA requestNo locationThe city and country, with a warning when the country changed, and country rules
Webhook logsA failed post was lostRetried, and audit posts that come too fast wait their turn
Discord members joining and leavingNot loggedLogged through join-leave-logging.discord
PermissionsUnknown to the server until grantedDeclared, with defaults: see Permissions
A YAML error in a fileThe plugin started on defaultsThe plugin does not start, and names the file and the line
An unknown database.typeFell back to flatfileThe plugin does not start
Update checkAsked GitHubAsks uxplima.com

Moving off flatfile

New installations use SQLite. An existing server keeps the database it had. If it is on flatfile, moving to SQLite or a SQL server is worth doing now; Database explains the import.

After the first start

Link and unlink a test account, check that the linked roles come and go, and if you use 2FA, log in once with an account that is challenged. Then check /dsadmin stats for the number of linked accounts you expect.