Saving and syncing PlayerData between server replicas has never been so easy.
This plugin automatically handles data races and uses gson to serialize player data.
So as example, you have a StatusData class which each player has one.
public class StatusData extends PlayerData{
private String status;
public String getStatus(){
return status;
}
}
Then you register it by
@Override
public void onEnable(){
PlayerDataSync.getinstance().register("status",StatusData.class);
}
After the player joins the server replica, you can fetch the player's data by.
PlayerDataSync.getinstance().getData(playerUuid,StatusData.class);
That's all, pretty simple.