Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
8aaad8647f
Commit
3266a2fdd0
@ -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);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren