diff --git a/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java b/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java index e448f89..b00f7a9 100644 --- a/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java +++ b/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java @@ -127,7 +127,9 @@ public class GhostJumpAndRun implements Listener { if (!iterator.hasNext() || entityPlayer == null) { replayRunnable.cancel(); replayRunnable = null; - entityServer.close(); + if (entityServer != null) { + entityServer.close(); + } entityServer = null; entityPlayer = null; return;