Dieser Commit ist enthalten in:
Ursprung
745c69bd6a
Commit
5ca8381482
@ -124,7 +124,7 @@ public class GhostJumpAndRun implements Listener {
|
|||||||
replayRunnable = new BukkitRunnable() {
|
replayRunnable = new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (!iterator.hasNext()) {
|
if (!iterator.hasNext() || entityPlayer == null) {
|
||||||
replayRunnable.cancel();
|
replayRunnable.cancel();
|
||||||
replayRunnable = null;
|
replayRunnable = null;
|
||||||
entityServer.close();
|
entityServer.close();
|
||||||
@ -132,9 +132,7 @@ public class GhostJumpAndRun implements Listener {
|
|||||||
entityPlayer = null;
|
entityPlayer = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (entityPlayer != null) {
|
entityPlayer.move(iterator.next().toLocation(player.getWorld()));
|
||||||
entityPlayer.move(iterator.next().toLocation(player.getWorld()));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
replayRunnable.runTaskTimer(LobbySystem.getPlugin(), 1, 2);
|
replayRunnable.runTaskTimer(LobbySystem.getPlugin(), 1, 2);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren