SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-04-12 18:08:43 +02:00
Ursprung 63d8da1f94
Commit f4788d8152

Datei anzeigen

@ -426,9 +426,7 @@ public class FightTeam implements IFightTeam{
public void enable() {
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);
}
fightPlayer.getPlayer().teleport(FightTeam.this.spawn);
});
}