mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00: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
|
@Override
|
||||||
public boolean handle(CommandRequestPacket packet) {
|
public boolean handle(CommandRequestPacket packet) {
|
||||||
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
System.out.println("Handled packet: " + packet.getClass().getSimpleName());
|
||||||
return false;
|
|
||||||
|
ClientChatPacket chatPacket = new ClientChatPacket(packet.getCommand());
|
||||||
|
session.getDownstream().getSession().send(chatPacket);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue