Fix in 2dregion
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
93c32a6dc0
Commit
7a99f437c9
@ -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) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren