-
Notifications
You must be signed in to change notification settings - Fork 12
Discord tie-breaker on first join/link for ban sync #45
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
base: main
Are you sure you want to change the base?
Conversation
Vankka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ban sync tie-breakers are though, I think a "prefer true" might be the most appropriate default for it (so if MC or Discord is banned = ban, if both unbanned = unbanned)
| public boolean preferDiscordTieBreakerOnFirstJoin = true; | ||
|
|
||
| @Comment("When a player links their account, prefer the Discord side for tie-breaking") | ||
| public boolean preferDiscordTieBreakerOnAccountLink = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should already be possible to configure via ban-sync.tie-breakers.link (or along those lines)
|
I don't think there are exploits in the player connected handler itself:
The tie-breaker itself can be a exploit of sorts, if bidirectional sync is needed. For this I think we should implement "First join" resync being different doesn't really make sense to me, as players link status can be linked OR unlinked on their first login: on multi-server networks and when using the global linking service, it also relies on the world data (on Bukkit, at least), so it might not even be the player's first time ever joining the server. |
|
As far as I remember, And of course anything which happened while the server was offline has to be handled by tiebreaker logic. Setting the default tiebreaker to Discord may have been the best way of avoiding this if we had a way of properly detecting in game bans but we don't so 🤷♂️ |
No description provided.