SteamWar/FightSystem
Archiviert
13
1

Fix in 2dregion

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-04 17:13:04 +01:00
Ursprung 93c32a6dc0
Commit 7a99f437c9

Datei anzeigen

@ -49,7 +49,7 @@ public class LeaveableArena implements Listener {
if(Fight.fighting(player))
return;
if(Config.ArenaRegion.inRegion(event.getSpawnLocation())) {
if(Config.ArenaRegion.in2dRegion(event.getSpawnLocation())) {
markInArena(player);
}
}
@ -57,7 +57,7 @@ public class LeaveableArena implements Listener {
@EventHandler(priority = EventPriority.MONITOR)
public void onRespawn(PlayerRespawnEvent event) {
Player player = event.getPlayer();
if(Config.ArenaRegion.inRegion(event.getRespawnLocation())) {
if(Config.ArenaRegion.in2dRegion(event.getRespawnLocation())) {
markInArena(player);
} else {
spectatorsInArena.remove(player);
@ -70,7 +70,7 @@ public class LeaveableArena implements Listener {
if(Fight.fighting(player))
return;
boolean inArena = Config.ArenaRegion.inRegion(event.getTo());
boolean inArena = Config.ArenaRegion.in2dRegion(event.getTo());
boolean spectator = spectatorsInArena.containsKey(player);
if(inArena && !spectator) {