GeyserMC / Floodgate

Hybrid mode plugin to allow for connections from Geyser to join online mode servers.
https://geysermc.org
MIT License
575 stars 170 forks source link

Detect Windows vs Mobile players? #368

Closed ghost closed 1 year ago

ghost commented 2 years ago

Hello, I would like to detect Windows Bedrock players on my Geyser Server. I only want to allow Mobile players (iOS or Android) to play. Is there any way through the API to block them? Any clue on how to differentiate them?

Tim203 commented 1 year ago

You can use the Floodgate API to see on which platform they're playing. Using a combination of the wiki: https://wiki.geysermc.org/floodgate/api and the source code you can find what you want.