diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java index 7438ac1..68a795c 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java @@ -261,6 +261,9 @@ public class SWCommandUtils { private static Function numberMapper(Function mapper) { return s -> { try { + if (s.equalsIgnoreCase("nan")) { + return null; + } return mapper.apply(s); } catch (NumberFormatException e) { return null;