Add support for commands

This commit is contained in:
RednedEpic 2019-07-20 20:21:11 -05:00
parent a777add304
commit 78438121bd

View file

@ -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