Hotfix teamleave
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
0b4a95f399
Commit
9e4e4ee4f8
@ -60,7 +60,7 @@ public class FightPlayer {
|
|||||||
|
|
||||||
public boolean isLeader() {
|
public boolean isLeader() {
|
||||||
FightPlayer leader = team.getLeader();
|
FightPlayer leader = team.getLeader();
|
||||||
return leader != null && leader.getPlayer() == player;
|
return leader != null && leader.getPlayer() == player;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Kit getKit() {
|
public Kit getKit() {
|
||||||
|
@ -183,7 +183,7 @@ public class FightTeam implements IFightTeam{
|
|||||||
FightPlayer fightPlayer = getFightPlayer(player);
|
FightPlayer fightPlayer = getFightPlayer(player);
|
||||||
|
|
||||||
final List<TechHider.ChunkPos> chunksToReload = TechHider.prepareChunkReload(player);
|
final List<TechHider.ChunkPos> chunksToReload = TechHider.prepareChunkReload(player);
|
||||||
players.remove(fightPlayer);
|
players.remove(player);
|
||||||
team.removeEntry(player.getName());
|
team.removeEntry(player.getName());
|
||||||
fightPlayer.getPlayer().getInventory().clear();
|
fightPlayer.getPlayer().getInventory().clear();
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren