LOOHP / ImageFrame

Put images on maps and walls!
https://www.spigotmc.org/resources/106031/
GNU General Public License v3.0
50 stars 14 forks source link

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

Open slash1div opened 8 months ago

slash1div commented 8 months ago

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 commented 6 months ago

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")
}