aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitServerConfigProvider.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitServerConfigProvider.java b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitServerConfigProvider.java
index e4750f9..492e610 100644
--- a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitServerConfigProvider.java
+++ b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/BukkitServerConfigProvider.java
@@ -84,7 +84,11 @@ public class BukkitServerConfigProvider extends AbstractServerConfigProvider<Buk
if ("true".equals(value) || "false".equals(value)) {
values.put(key, Boolean.parseBoolean(value));
} else if (value.matches("\\d+")) {
- values.put(key, Integer.parseInt(value));
+ try {
+ values.put(key, Long.parseLong(value));
+ } catch (NumberFormatException e) {
+ values.put(key, value);
+ }
} else {
values.put(key, value);
}