Added summary-on-start configuration setting to control whether the summary should be printed.

This commit is contained in:
sk89q 2010-11-19 20:09:26 -08:00
parent 1859fc5db2
commit 70c6b26db5
2 changed files with 19 additions and 15 deletions

View File

@ -1,4 +1,6 @@
1.2
- A new summary of the status of some core protections is now printed
on start. Disable this with 'summary-on-start'.
- Blacklist system has been overhauled. Check README.txt for changed
configuration settings!
- The blacklist's method of preventing notification repeats is now better,

View File

@ -190,6 +190,7 @@ public void loadConfiguration() {
}
// Print an overview of settings
if (properties.getBoolean("summary-on-start", true)) {
logger.log(Level.INFO, enforceOneSession ? "WorldGuard: Single session is enforced."
: "WorldGuard: Single session is NOT ENFORCED.");
logger.log(Level.INFO, blockTNT ? "WorldGuard: TNT ignition is blocked."
@ -209,6 +210,7 @@ public void loadConfiguration() {
}
}
}
}
/**
* Called during the early login process to check whether or not to kick the