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 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{
reset(event, DENY_ENTERN); 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){ private void checkInInnerArea(Player player, Location to, FightTeam team){