mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-29 19:59:13 +00:00
Fix: Brand message being sent too early (#5265)
* Fix: Brand message not being sent, send lowercase locale, ensure the MCPL default listener comes first * Refactor disconnect handling * apparently default listeners aren't always first... huh * fix issue with bundle cache attempting to check a null inventory
This commit is contained in:
@@ -50,7 +50,7 @@ public class SessionDisconnectEvent extends ConnectionEvent {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the disconnect reason, thereby overriding th original reason.
|
||||
* Sets the disconnect message shown to the Bedrock client.
|
||||
*
|
||||
* @param disconnectReason the reason for the disconnect
|
||||
*/
|
||||
|
||||
@@ -33,10 +33,10 @@ import org.geysermc.event.Event;
|
||||
import java.net.InetSocketAddress;
|
||||
|
||||
/**
|
||||
* Called whenever Geyser gets pinged
|
||||
* Called whenever Geyser gets pinged by a Bedrock client.
|
||||
* <p>
|
||||
* This event allows you to modify/obtain the MOTD, maximum player count, and current number of players online,
|
||||
* Geyser will reply to the client with what was given.
|
||||
* This event allows you to modify/obtain the MOTD, maximum player count, and current number of players online.
|
||||
* Geyser will reply to the client with the information provided in this event.
|
||||
*/
|
||||
public interface GeyserBedrockPingEvent extends Event {
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ import java.util.Set;
|
||||
* <br>
|
||||
* This event is mapped to the existence of Brigadier on the server.
|
||||
*/
|
||||
public class ServerDefineCommandsEvent extends ConnectionEvent implements Cancellable {
|
||||
public final class ServerDefineCommandsEvent extends ConnectionEvent implements Cancellable {
|
||||
private final Set<? extends CommandInfo> commands;
|
||||
private boolean cancelled;
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ import java.util.Map;
|
||||
* Fired when the Java server sends a transfer request to a different Java server.
|
||||
* Geyser Extensions can listen to this event and set a target server ip/port for Bedrock players to be transferred to.
|
||||
*/
|
||||
public class ServerTransferEvent extends ConnectionEvent {
|
||||
public final class ServerTransferEvent extends ConnectionEvent {
|
||||
|
||||
private final String host;
|
||||
private final int port;
|
||||
|
||||
Reference in New Issue
Block a user