mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-22 23:08:30 +01:00
Add support for commands
This commit is contained in:
parent
a777add304
commit
78438121bd
1 changed files with 5 additions and 1 deletions
|
@ -174,7 +174,11 @@ public class UpstreamPacketHandler implements BedrockPacketHandler {
|
|||
@Override
|
||||
public boolean handle(CommandRequestPacket packet) {
|
||||
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
||||
return false;
|
||||
|
||||
ClientChatPacket chatPacket = new ClientChatPacket(packet.getCommand());
|
||||
session.getDownstream().getSession().send(chatPacket);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue