Added silent mode, addresses issue #85

This commit is contained in:
H31IX committed 2012-06-17 17:04:39 -04:00
1 parent f5939ec7d0
commit f2d6df5b16
5 files changed
+95 -46

No files matched your search

@@ -47,6 +47,7 @@ public class Configuration
private boolean verboseStartup;
private boolean chatSpam;
private boolean commandSpam;
private boolean silentMode;
private int fileLogLevel = 0;
private String updateFolder;
private static Language language;
@@ -113,6 +114,11 @@ public class Configuration
{
return updateFolder;
}
public boolean silentMode()
{
return silentMode;
}
public int getFileLogLevel()
{
@@ -195,6 +201,12 @@ public class Configuration
save();
}
commandSpam = config.getBoolean("System.Block command spam");
if (config.getString("System.Silent mode") == null)
{
config.set("System.Silent mode", false);
save();
}
silentMode = config.getBoolean("System.Silent mode");
}
public String getResult(String event)