Fixing #22 (Dead Spectators can fly to the enemy)
Dieser Commit ist enthalten in:
Ursprung
f72c5b224a
Commit
6060de639e
@ -59,7 +59,9 @@ public class PlayerMoveListener implements Listener {
|
|||||||
player.teleport(from);
|
player.teleport(from);
|
||||||
player.sendMessage(FightSystem.PREFIX + "§cDu darfst nicht weiter zu den Kämpfern!");
|
player.sendMessage(FightSystem.PREFIX + "§cDu darfst nicht weiter zu den Kämpfern!");
|
||||||
}
|
}
|
||||||
}else if(fightTeam != null && !instance.isEntern() && !fightTeam.getFightPlayer(player).isOut()){
|
}else if(fightTeam != null && (
|
||||||
|
(!FightSystem.isEntern() && !fightTeam.getFightPlayer(player).isOut()) ||
|
||||||
|
FightSystem.getFightState() == FightState.SPECTATE)){
|
||||||
player.teleport(from);
|
player.teleport(from);
|
||||||
player.sendMessage(FightSystem.PREFIX + "§cDu darfst nicht zu " + Fight.getOpposite(fightTeam).getName() + "§c!");
|
player.sendMessage(FightSystem.PREFIX + "§cDu darfst nicht zu " + Fight.getOpposite(fightTeam).getName() + "§c!");
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren