|
@@ -1,6 +1,7 @@
|
|
|
import java.io.*;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.logging.Level;
|
|
|
+import java.util.Set;
|
|
|
import java.util.logging.Logger;
|
|
|
//=====================================================================
|
|
|
//Class: vminecraftSettings
|
|
@@ -10,7 +11,9 @@ import java.util.logging.Logger;
|
|
|
public class vMinecraftSettings {
|
|
|
//private final static Object syncLock = new Object();
|
|
|
protected static final Logger log = Logger.getLogger("Minecraft");
|
|
|
- private static volatile vMinecraftSettings instance;
|
|
|
+ private static volatile vMinecraftSettings instance;
|
|
|
+ //The block IDs fire won't spread to will be stored here
|
|
|
+ public static Set<Integer> fireNoSpread;
|
|
|
|
|
|
|
|
|
//The feature settings
|
|
@@ -41,7 +44,7 @@ public class vMinecraftSettings {
|
|
|
//An array of players currently toggled for admin chat
|
|
|
static ArrayList<String> adminChatList = new ArrayList<String>();
|
|
|
//An array of blocks that won't catch on fire
|
|
|
- static ArrayList<String> fireNoSpread = new ArrayList<String>();
|
|
|
+
|
|
|
|
|
|
|
|
|
private PropertiesFile properties;
|
|
@@ -87,8 +90,6 @@ public class vMinecraftSettings {
|
|
|
writer.write("cmdEzModo=true\r\n");
|
|
|
writer.write("#Adding player names to this list will have them start off in ezmodo\r\n");
|
|
|
writer.write("ezModo=\r\n");
|
|
|
- writer.write("#The health ezmodo people will have while in ezmodo. Don't set to 0\r\n");
|
|
|
- writer.write("ezHealth=30\r\n");
|
|
|
writer.write("stopFire=false\r\n");
|
|
|
writer.write("#Flame Immune blocks will never have fire spread to them, seperate with comma. Needs stopFire to be true\r\n");
|
|
|
writer.write("fireNoSpread=5,17,18");
|
|
@@ -141,7 +142,6 @@ public class vMinecraftSettings {
|
|
|
stopTnt = properties.getBoolean("stopTNT",true);
|
|
|
rules = properties.getString("rules", "").split("@");
|
|
|
deathMessages = properties.getString("deathmessages", "").split(",");
|
|
|
- fireNoSpread.add(properties.getString("fireNoSpread", "").split(",").toString());
|
|
|
String[] tempEz = properties.getString("ezModo").split(",");
|
|
|
ezModo = new ArrayList<String>();
|
|
|
for(String ezName : tempEz)
|