Fix respawn on spectate
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
fe28d387dd
Commit
8634db5d78
@ -421,7 +421,12 @@ public class FightTeam implements IFightTeam{
|
||||
|
||||
@Override
|
||||
public void enable() {
|
||||
players.values().forEach(fightPlayer -> Fight.setPlayerGamemode(fightPlayer.getPlayer(), GameMode.SPECTATOR));
|
||||
players.values().forEach(fightPlayer -> {
|
||||
Fight.setPlayerGamemode(fightPlayer.getPlayer(), GameMode.SPECTATOR);
|
||||
if(Fight.getOpposite(FightTeam.this).getExtendRegion().playerInRegion(fightPlayer.getPlayer().getLocation())){
|
||||
fightPlayer.getPlayer().teleport(FightTeam.this.spawn);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren