Added PropertiesConfiguration utility configuration loaded, fixed misspelling if logCommands variable in LocalConfiguration.

This commit is contained in:
sk89q
2011-01-27 09:07:50 -08:00
parent 5aa7d70041
commit 81c1b17f4c
4 changed files with 235 additions and 6 deletions

View File

@@ -464,7 +464,7 @@ public class WorldEdit {
LocalSession session, EditSession editSession, String[] split)
throws WorldEditException
{
if (config.logComands) {
if (config.logCommands) {
logger.log(Level.INFO, "WorldEdit: " + player.getName() + ": "
+ StringUtil.joinString(split, " "));
}
@@ -1532,7 +1532,7 @@ public class WorldEdit {
FileOutputStream out = null;
if (config.shellSaveType == null) {
player.printError("shell-save-type has to be configured in worldedit.properties");
player.printError("Shell script type must be configured: 'bat' or 'bash' expected.");
} else if (config.shellSaveType.equalsIgnoreCase("bat")) {
try {
out = new FileOutputStream("worldedit-delchunks.bat");
@@ -1593,7 +1593,7 @@ public class WorldEdit {
}
}
} else {
player.printError("Unknown shell script save type. 'bat' or 'bash' expected.");
player.printError("Shell script type must be configured: 'bat' or 'bash' expected.");
}
return true;