?
This commit is contained in:
parent
5c5fc9a074
commit
10d81db1e4
@ -49,14 +49,14 @@ public class MovementListener implements Listener {
|
||||
|
||||
Location to = event.getTo();
|
||||
Location from = event.getFrom();
|
||||
if (to.getX() != from.getX() || to.getZ() != from.getZ()) {
|
||||
if (game.getGameState() == GameState.STARTING) {
|
||||
if (game.getGameState() == GameState.STARTING) {
|
||||
if (to.getX() != from.getX() || to.getZ() != from.getZ()) {
|
||||
player.teleport(from);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (playerData.getPlayerState() != PlayerState.RESPAWNING && game.getGameState() != GameState.ENDING) {
|
||||
if (game.getGameState() != GameState.ENDING) {
|
||||
if (player.getLocation().getY() <= game.getArena().getDeadZone()) {
|
||||
Player killer = playerData.getLastDamager();
|
||||
if (killer != null) {
|
||||
|
@ -31,7 +31,7 @@ public class RespawnRunnable extends BukkitRunnable {
|
||||
cancel();
|
||||
return;
|
||||
}
|
||||
if (this.playerData.getPlayerState() != PlayerState.RESPAWNING || this.playerData.getPlayerState() != PlayerState.PLAYING) {
|
||||
if (this.playerData.getPlayerState() == PlayerState.SPAWN) {
|
||||
cancel();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user