SteamWar/BungeeCore
Archiviert
13
2

Fix Command19
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-07-21 12:25:14 +02:00
Ursprung 8aaad8647f
Commit 3266a2fdd0

Datei anzeigen

@ -32,7 +32,7 @@ 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("/"); boolean command = message.startsWith("/");
Chat19 packet = new Chat19(message); Chat19 packet = new Chat19(command ? message.substring(1) : message);
ByteBuf buf = Unpooled.buffer(); ByteBuf buf = Unpooled.buffer();
writeVarInt(command ? 0x03 : 0x04, buf); writeVarInt(command ? 0x03 : 0x04, buf);