mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-20 10:43:12 +01:00
Antigriefs should be working now, it will check the sorrounding blocks to see if any of them are blocks that fire is not allowed to spread to. Also commented out if statement on announcements to see if it was bugged or not. Added in /colors command so players can see all the colors they can use.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user