#How to check if geyser account is linked

18 messages · Page 1 of 1 (latest)

burnt pagoda
#

Just as the title says, I want to check if an account is linked in Velocity

public class GeyserPlayersUUIDSyncListener {
    final Main plugin;
    final ProxyServer server;
    final Logger logger;
    final FloodgateApi floodgateApi;

    public GeyserPlayersUUIDSyncListener(Main plugin, ProxyServer server, Logger logger) {
        this.plugin = plugin;
        this.server = server;
        this.logger = logger;
        this.floodgateApi = FloodgateApi.getInstance();
    }

    @Subscribe
    public void onPlayerGameProfileRequest(GameProfileRequestEvent e) {
        if (this.floodgateApi.isFloodgatePlayer(e.getGameProfile().getId())) {

        }
    }
}```
little fern
burnt pagoda
#

How could getPlayer be null?

little fern
burnt pagoda
#

Yea, the system is way more complicated then I thought. Is there a plugin that manages linked accounts, so that they won't loose data if it's linked?

little fern
#

if a linked bedrock player joins they'll have the name & uuid of the Java player they're linked to

#

I'm not sure which kind of data loss you're wondering about, please specify the question

burnt pagoda
#

Yea, so if they played with bedrock and then linked, they loose everything. If they decide to play with java, they loose everything

little fern
#

But they're not loosing anything, that progress is bound to their bedrock account

#

If they unlink, it'll still be there

#

If they want to transfer items, they'd need to transfer these from the bedrock to the Java account before linking

burnt pagoda
#

So is there a plugin, that could check of these cases and change UUID accordingly?

little fern
#

now you've lost me again, what's such a plugin supposed to do? ignore player links?

burnt pagoda
#

if player has played with bedrock and links the accounts and joins, link those accounts and use bedrock uuid
if he then decides to play with Java, check for a linked bedrock account and change uuid to bedrock uuid

This way player, that started playing with Bedrock and linked their account would be able to play with that linked account or java without having their progress reset to 0

little fern
#

That's not possible at the moment - all links are made to the Java account, not the Bedrock account

#

The workaround for that as of now would be to transfer anything relevant (items etc) from the bedrock player to the Java player before linking

burnt pagoda
#

Thats a few days work for one account

little fern
#

Usually in vanilla-like settings people are concerned about just items in the inventory/ender chest; transferring those takes a few minutes at most.