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