Discord tie-breaker on first join/link for ban sync#45
Discord tie-breaker on first join/link for ban sync#45IxPrumxI wants to merge 4 commits intoDiscordSRV:mainfrom
Conversation
Vankka
left a comment
There was a problem hiding this comment.
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.
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.