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))
|
if(Fight.fighting(player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(Config.ArenaRegion.inRegion(event.getSpawnLocation())) {
|
if(Config.ArenaRegion.in2dRegion(event.getSpawnLocation())) {
|
||||||
markInArena(player);
|
markInArena(player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ public class LeaveableArena implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onRespawn(PlayerRespawnEvent event) {
|
public void onRespawn(PlayerRespawnEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
if(Config.ArenaRegion.inRegion(event.getRespawnLocation())) {
|
if(Config.ArenaRegion.in2dRegion(event.getRespawnLocation())) {
|
||||||
markInArena(player);
|
markInArena(player);
|
||||||
} else {
|
} else {
|
||||||
spectatorsInArena.remove(player);
|
spectatorsInArena.remove(player);
|
||||||
@ -70,7 +70,7 @@ public class LeaveableArena implements Listener {
|
|||||||
if(Fight.fighting(player))
|
if(Fight.fighting(player))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
boolean inArena = Config.ArenaRegion.inRegion(event.getTo());
|
boolean inArena = Config.ArenaRegion.in2dRegion(event.getTo());
|
||||||
boolean spectator = spectatorsInArena.containsKey(player);
|
boolean spectator = spectatorsInArena.containsKey(player);
|
||||||
|
|
||||||
if(inArena && !spectator) {
|
if(inArena && !spectator) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren