Merge pull request 'Fix FightEndsPacket' (#182) from FixRanked into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #182 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
317912763a
@ -36,6 +36,7 @@ public class FightEndsPacket extends SpigotPacket {
|
|||||||
private int redSchem;
|
private int redSchem;
|
||||||
private List<Integer> bluePlayers;
|
private List<Integer> bluePlayers;
|
||||||
private List<Integer> redPlayers;
|
private List<Integer> redPlayers;
|
||||||
|
private String gameMode;
|
||||||
|
|
||||||
public FightEndsPacket(ByteArrayDataInput byteArrayDataInput) {
|
public FightEndsPacket(ByteArrayDataInput byteArrayDataInput) {
|
||||||
win = byteArrayDataInput.readByte();
|
win = byteArrayDataInput.readByte();
|
||||||
@ -49,6 +50,7 @@ public class FightEndsPacket extends SpigotPacket {
|
|||||||
for (int i = 0; i < redSize; i++) {
|
for (int i = 0; i < redSize; i++) {
|
||||||
redPlayers.add(byteArrayDataInput.readInt());
|
redPlayers.add(byteArrayDataInput.readInt());
|
||||||
}
|
}
|
||||||
|
gameMode = byteArrayDataInput.readUTF();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -69,5 +71,6 @@ public class FightEndsPacket extends SpigotPacket {
|
|||||||
for (int i : redPlayers) {
|
for (int i : redPlayers) {
|
||||||
byteArrayDataOutput.writeInt(i);
|
byteArrayDataOutput.writeInt(i);
|
||||||
}
|
}
|
||||||
|
byteArrayDataOutput.writeUTF(gameMode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren