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,9 +73,11 @@ public class TeamArea implements Listener {
else else
return; // Is allowed in area return; // Is allowed in area
checkInInnerArea(event.getPlayer(), to, Fight.getRedTeam()); checkInInnerArea(event.getPlayer(), to, Fight.getRedTeam());
}else if(team != null && player.getGameMode() != GameMode.SPECTATOR && !team.canPlayerEntern(player)) }else{
if(team != null && player.getGameMode() != GameMode.SPECTATOR && !team.canPlayerEntern(player) && !team.getExtendRegion().in2dRegion(to))
reset(event, DENY_ENTERN); reset(event, DENY_ENTERN);
} }
}
private void checkInInnerArea(Player player, Location to, FightTeam team){ private void checkInInnerArea(Player player, Location to, FightTeam team){
if(team.getSchemRegion().playerInRegion(to) && Config.PreperationArea >= 5){ // Preventing false positives due to small extension if(team.getSchemRegion().playerInRegion(to) && Config.PreperationArea >= 5){ // Preventing false positives due to small extension