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

[Feature] Add a toggle to disable animated maps (or just for Bedrock players) #45

Open
slash1div opened this issue Feb 25, 2024 · 1 comment

Comments

@slash1div
Copy link

Animated maps currently crash my Velocity proxy when using Geyser. It's probably overloading the server translating the packets.
Can you add a hook into Floodgate to check if a player is on Bedrock, and disable the map's playback? Or add a bool value to disable the animated maps entirely.

@jschenke488
Copy link

jschenke488 commented May 18, 2024

Can confirm this also happens on a Paper server. The exact problem is Geyser has an out of memory exception when parsing the packets for map data. This can be implemented using the Geyser API and a simple if statement. Gradle and Maven repository information can be found at https://wiki.geysermc.org/geyser/getting-started-with-the-api/

@EventHandler
fun onPlayerJoin(event: PlayerJoinEvent) {
  if (GeyserApi.api().isBedrockPlayer(event.player.uniqueId)) println("${event.player.name} is a Bedrock player")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants