AMP icon indicating copy to clipboard operation
AMP copied to clipboard

Minecraft server sleep with Bedrock/Geyser

Open SanderVeeken opened this issue 1 year ago • 3 comments

Bug Report

System Information

  • Debian GNU/Linux 12
  • AMP 2.5.0.12
  • Mainline release
  • Minecraft Paper Server 1.20.4 (git Paper 497)
  • Java 20
  • Geyser-Spigot v2.3.1-SNAPSHOT
  • floodgate v2.2.3-SNAPSHOT (b107-c4a4487)
  • ViaVersion 4.10.3-SNAPSHOT

I confirm:

  • [x] that I have searched for an existing bug report for this issue.
  • [x] that I am using the latest available version of AMP.
  • [x] that my operating system is up-to-date.
  • [x] **that my checkboxes above look exactly like the one on the left with no extra spaces.

Symptoms

  • What are you trying to do? I'm connecting to my server instance with Bedrock players (that have a corresponding Java player in my local Floodgate db)
  • What are you expecting to happen? I can play Minecraft the same way I can with Java players
  • What is actually happening? ('Nothing' is not an acceptable answer!) The server shuts down after the preset sleep time as if no player is connected. Additionally, if I leave before the preset time, my backup schedule that should trigger "when the last player leaves the server" does not trigger for Bedrock players.

Reproduction

Install the above mentioned server and plugins Add a Bedrock port (normally 19132) to the server instance so Bedrock players can connect Start the server and connect with a Bedrock player Play until sleep kicks in

Additional info: Everything works absolutely fine when the same players connect with their Java users directly.

I watched the console while logging on/off with both Java and Bedrock and this is what it said:

BEDROCK:

join [Geyser-Spigot]: Player connected with username MyBedrockName [Geyser-Spigot]: MyBedrockName (logged in as: MyBedrockName) has connected to the Java server [floodgate]: Floodgate player logged in as MyJavaName joined (UUID: 1234567-d1b7-45b0-a60a-7595809cab12) MyJavaName joined the game

leave [Geyser-Spigot]: MyBedrockName has disconnected from the Java server because of Bedrock client disconnected [floodgate]: Floodgate player logged in as MyJavaName disconnected MyJavaName lost connection: Disconnected MyJavaName left the game

JAVA:

join UUID of player MyJavaName is 1234567-d1b7-45b0-a60a-7595809cab12 MyJavaName joined the game MyJavaName[/192.168.1.64:51576]: logged in with entity id 873 at ([world]198.4079, 64.0, -54.30001)

leave MyJavaName lost connection: Disconnected MyJavaName left the game

SanderVeeken avatar Jun 05 '24 17:06 SanderVeeken

Sleep mode is only supported on vanilla Java servers. Any other setup isn't guaranteed.

That being said, I'll check if it's just a regex issue.

IceOfWraith avatar Jun 05 '24 18:06 IceOfWraith

That's what I was thinking, so I directed them this way. Last time I checked it was working, so I feel like it might've been a recent change. For other modded/different setups I'd just ignore it, but Geyser setups are pretty common.

p0t4t0sandwich avatar Jun 05 '24 18:06 p0t4t0sandwich

Thanks for checking!

I wouldn't mind as much if the issue was only that my "when the last player leaves the server" sleep/backup schedule wasn't triggered by Bedrock players, but the fact that the server still goes to sleep when Bedrock players are connected basically means that they can't play at all (i.e. Geyser is useless).

But of course I understand there are limits to what AMP and its devs can support. If support isn't official, can I add a vote or feature request somewhere?

SanderVeeken avatar Jun 05 '24 18:06 SanderVeeken