Class BedrockSetPlayerGameTypeTranslator
java.lang.Object
org.geysermc.geyser.translator.protocol.PacketTranslator<org.cloudburstmc.protocol.bedrock.packet.SetPlayerGameTypePacket>
org.geysermc.geyser.translator.protocol.bedrock.entity.player.BedrockSetPlayerGameTypeTranslator
public class BedrockSetPlayerGameTypeTranslator
extends PacketTranslator<org.cloudburstmc.protocol.bedrock.packet.SetPlayerGameTypePacket>
In vanilla Bedrock, if you have operator status, this sets the player's gamemode without confirmation from the server.
With operator status, the Gamemode change is sent to the Java server, if it is not present, the gamemode is not changed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtranslate(GeyserSession session, org.cloudburstmc.protocol.bedrock.packet.SetPlayerGameTypePacket packet) Sets client game mode for the server via the Bedrock client's "world" menu (given sufficient permissions).Methods inherited from class org.geysermc.geyser.translator.protocol.PacketTranslator
shouldExecuteInEventLoop
-
Constructor Details
-
BedrockSetPlayerGameTypeTranslator
public BedrockSetPlayerGameTypeTranslator()
-
-
Method Details
-
translate
public void translate(GeyserSession session, org.cloudburstmc.protocol.bedrock.packet.SetPlayerGameTypePacket packet) Sets client game mode for the server via the Bedrock client's "world" menu (given sufficient permissions).- Specified by:
translatein classPacketTranslator<org.cloudburstmc.protocol.bedrock.packet.SetPlayerGameTypePacket>
-