SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-03-31 21:50:45 +02:00
Ursprung 29a2b89a99
Commit 68f4da0f4f

Datei anzeigen

@ -73,8 +73,10 @@ public class TeamArea implements Listener {
else
return; // Is allowed in area
checkInInnerArea(event.getPlayer(), to, Fight.getRedTeam());
}else if(team != null && player.getGameMode() != GameMode.SPECTATOR && !team.canPlayerEntern(player))
reset(event, DENY_ENTERN);
}else{
if(team != null && player.getGameMode() != GameMode.SPECTATOR && !team.canPlayerEntern(player) && !team.getExtendRegion().in2dRegion(to))
reset(event, DENY_ENTERN);
}
}
private void checkInInnerArea(Player player, Location to, FightTeam team){