CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
201 stars 38 forks source link

Minecraft server sleep with Bedrock/Geyser #1115

Open SanderVeeken opened 3 weeks ago

SanderVeeken commented 3 weeks ago

Bug Report

System Information

I confirm:

Symptoms

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

IceOfWraith commented 3 weeks ago

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.

p0t4t0sandwich commented 3 weeks ago

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.

SanderVeeken commented 3 weeks ago

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?