Fix team area
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
29a2b89a99
Commit
68f4da0f4f
@ -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){
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren