1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-18 01:42:32 +01:00

TrapAlice's latest changes. Appears to have fixed a settings bug and changed logging to use log.log instead of id.a.log. Which is fine but it means we have to import our own logging system now.

Signed-off-by: nossr50 <nossr50@gmail.com>
This commit is contained in:
nossr50
2010-11-16 18:49:08 -08:00
parent 5c545f2b4f
commit 10c2a90efc
2 changed files with 19 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
import java.io.FileWriter;
import java.io.IOException;
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -28,8 +27,8 @@ public class settings {
public void loadSettings()
{
if(properties == null)
File theDir = new File("vminecraft.properties");
if(!theDir.exists())
{
String location = "vminecraft.properties";
properties = new PropertiesFile("vminecraft.properties");
@@ -68,6 +67,7 @@ public class settings {
} else {
properties = new PropertiesFile("vminecraft.properties");
properties.load();
}
@@ -87,7 +87,7 @@ public class settings {
globalmessages = properties.getBoolean("globalmessages",true);
cmdSay = properties.getBoolean("cmdSay",true);
rules = properties.getString("rules", "").split("@");
id.a.log(Level.INFO, "vminecraft plugin successfully loaded");
log.log(Level.INFO, "vminecraft plugin successfully loaded");
}
catch (Exception e)