Skip to content
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

Mysql Multiserver Support #172

Open
Rican14 opened this issue Sep 27, 2021 · 2 comments
Open

Mysql Multiserver Support #172

Rican14 opened this issue Sep 27, 2021 · 2 comments
Labels
type: enhancement Features and feature requests.

Comments

@Rican14
Copy link

Rican14 commented Sep 27, 2021

An very important update, for multi server sections

@Rican14 Rican14 added the type: enhancement Features and feature requests. label Sep 27, 2021
@utarwyn
Copy link
Owner

utarwyn commented Sep 29, 2021

Yes indeed! Thank you for creating the issue here 👍

@utarwyn utarwyn mentioned this issue Mar 31, 2023
@hkkongou
Copy link

hkkongou commented Jul 7, 2023

this is a much needed function.

In my opinion can add another JDBC table for sync unlock, thats what mysql player data bridge and many mysql sync plugin doing.

Methods:
when player enter a server, a lock is applied to a player indicating that they are in server, a boolean true in database.

Then if a player log off, the lock is removed,to null.

If the player is switching to another server, the server they switched to will have to wait for the lock to be removed by other server, then load the item/enderchest.

Plugin can check when player first login, then every 1 second for player to see is locked or not. (This prevent player login faster than JDBC query)

[additional feature]
For server that crashes and caused dead locks, can add a setting so that if the server detected 10-50 wait of lock release has pass, automatically unlease the lock.

I am not a pro java programmer, sadly I can't help much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Features and feature requests.
Projects
None yet
Development

No branches or pull requests

3 participants