diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java index 205e52b..f490d35 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/ScriptListener.java @@ -71,6 +71,7 @@ public class ScriptListener implements Listener { String sleepTimeString = command.substring(5).trim(); int sleepTime = 1; try { + sleepTime = Integer.parseInt(sleepTimeString); } catch (NumberFormatException e) { // Ignored }