geforkt von SteamWar/BungeeCore
Fix Command19
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
0e376456e8
Commit
8aaad8647f
@ -31,10 +31,11 @@ public class Chat19 extends Chat {
|
|||||||
|
|
||||||
public static void chat(ProxiedPlayer p, String message) {
|
public static void chat(ProxiedPlayer p, String message) {
|
||||||
if(p.getPendingConnection().getVersion() >= 759) {
|
if(p.getPendingConnection().getVersion() >= 759) {
|
||||||
|
boolean command = message.startsWith("/");
|
||||||
Chat19 packet = new Chat19(message);
|
Chat19 packet = new Chat19(message);
|
||||||
|
|
||||||
ByteBuf buf = Unpooled.buffer();
|
ByteBuf buf = Unpooled.buffer();
|
||||||
writeVarInt(0x04, buf);
|
writeVarInt(command ? 0x03 : 0x04, buf);
|
||||||
packet.write(buf, ProtocolConstants.Direction.TO_SERVER, p.getPendingConnection().getVersion());
|
packet.write(buf, ProtocolConstants.Direction.TO_SERVER, p.getPendingConnection().getVersion());
|
||||||
((ServerConnection) p.getServer()).getCh().write(new PacketWrapper(packet, buf));
|
((ServerConnection) p.getServer()).getCh().write(new PacketWrapper(packet, buf));
|
||||||
} else {
|
} else {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren