Compiling up to patch 10

By: md_5 <md_5@live.com.au>
This commit is contained in:
Spigot
2013-06-21 17:00:01 +10:00
parent 0aabcddfa8
commit 52cf9d619c
5 changed files with 57 additions and 38 deletions

View File

@@ -1,4 +1,4 @@
From f1b9716fd4c673cd0074121a4084fcf1cdc3137b Mon Sep 17 00:00:00 2001
From 0abff71f90ac188f2bc11f81faa224f58179f1c8 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Thu, 20 Jun 2013 17:35:57 +1000
Subject: [PATCH] Spigot Configuration
@@ -142,10 +142,10 @@ index 0000000..bf297bc
+}
diff --git a/src/main/java/org/spigotmc/SpigotWorldConfig.java b/src/main/java/org/spigotmc/SpigotWorldConfig.java
new file mode 100644
index 0000000..7d3ec55
index 0000000..6642e86
--- /dev/null
+++ b/src/main/java/org/spigotmc/SpigotWorldConfig.java
@@ -0,0 +1,57 @@
@@ -0,0 +1,63 @@
+package org.spigotmc;
+
+import java.util.List;
@@ -185,6 +185,12 @@ index 0000000..7d3ec55
+ return config.getBoolean( "world-settings." + worldName + "." + path, config.getBoolean( "world-settings.default." + path ) );
+ }
+
+ private double getDouble(String path, double def)
+ {
+ config.addDefault( "world-settings.default." + path, def );
+ return config.getDouble("world-settings." + worldName + "." + path, config.getDouble("world-settings.default." + path ) );
+ }
+
+ private int getInt(String path, int def)
+ {
+ config.addDefault( "world-settings.default." + path, def );