fix: send ServerboundPlayerLoadedPacket

This commit is contained in:
ChomeNS
2025-03-16 13:21:23 +07:00
parent c86e2714e6
commit bee4fb5d5b
2 changed files with 4 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ import org.geysermc.mcprotocollib.protocol.packet.configuration.clientbound.Clie
import org.geysermc.mcprotocollib.protocol.packet.cookie.clientbound.ClientboundCookieRequestPacket;
import org.geysermc.mcprotocollib.protocol.packet.cookie.serverbound.ServerboundCookieResponsePacket;
import org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundLoginPacket;
import org.geysermc.mcprotocollib.protocol.packet.ingame.serverbound.ServerboundPlayerLoadedPacket;
import org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundCustomQueryPacket;
import org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundLoginCompressionPacket;
import org.geysermc.mcprotocollib.protocol.packet.login.clientbound.ClientboundLoginFinishedPacket;
@@ -232,6 +233,8 @@ public class Bot extends SessionAdapter {
listener.connected(new ConnectedEvent(session));
}
session.send(ServerboundPlayerLoadedPacket.INSTANCE);
if (options.creayun) chat.send("/server creative");
}