From 28e2ca8d17b23eab4444fd6b7f857740d0b4e55c Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 10 Mar 2022 22:05:34 +0100 Subject: [PATCH] Fix FightEndsPacket --- src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java b/src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java index 5a6ec0d..3e282ee 100644 --- a/src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java +++ b/src/de/steamwar/bungeecore/comms/packets/FightEndsPacket.java @@ -38,6 +38,7 @@ public class FightEndsPacket extends BungeePacket { private int redSchem; private List bluePlayers; private List redPlayers; + private String gameMode; public FightEndsPacket(ByteArrayDataInput byteArrayDataInput) { win = byteArrayDataInput.readByte(); @@ -53,6 +54,7 @@ public class FightEndsPacket extends BungeePacket { for (int i = 0; i < redSize; i++) { redPlayers.add(byteArrayDataInput.readInt()); } + gameMode = byteArrayDataInput.readUTF(); } @Override @@ -73,5 +75,6 @@ public class FightEndsPacket extends BungeePacket { for (int i : redPlayers) { byteArrayDataOutput.writeInt(i); } + byteArrayDataOutput.writeUTF(gameMode); } }