Fixed a silly file creation error

This commit is contained in:
ElgarL committed 2012-01-15 22:41:25 +00:00
1 parent 8a4a49421f
commit e0b8b869b4
3 files changed
+3 -5

No files matched your search

-4
View File
@@ -31,10 +31,6 @@
# DarkPurple = &9, LightGreen = &a, LightBlue = &b # DarkPurple = &9, LightGreen = &a, LightBlue = &b
# Rose = &c, LightPurple = &d, Yellow = &e, White = &f # Rose = &c, LightPurple = &d, Yellow = &e, White = &f
# Spam_time set the minimum time between messages to be flagged as spam
spam_time: 2
Channels: Channels:
general: general:
commands: [g] commands: [g]
@@ -67,7 +67,7 @@ public class Chat extends JavaPlugin {
private boolean load() { private boolean load() {
FileMgmt.checkFolders(new String[] { getRootPath(), getChannelsPath() }); FileMgmt.checkFolders(new String[] { getRootPath(), getChannelsPath() });
return configuration.loadChannels(getChannelsPath(), "/Channels.yml"); return configuration.loadChannels(getChannelsPath(), "Channels.yml");
} }
@Override @Override
@@ -198,6 +198,7 @@ public class ConfigurationHandler {
if (Key.equalsIgnoreCase("worlds")) { if (Key.equalsIgnoreCase("worlds")) {
Map<String, Object> allWorlds = (Map<String, Object>) file.get(Key); Map<String, Object> allWorlds = (Map<String, Object>) file.get(Key);
if (allWorlds != null) {
for (String worlds : allWorlds.keySet()) { for (String worlds : allWorlds.keySet()) {
Map<String, Object> world = (Map<String, Object>) allWorlds.get(worlds); Map<String, Object> world = (Map<String, Object>) allWorlds.get(worlds);
@@ -219,6 +220,7 @@ public class ConfigurationHandler {
System.out.print("Adding: " + group.getName()); System.out.print("Adding: " + group.getName());
ChatSettings.addFormatGroup(group); ChatSettings.addFormatGroup(group);
} }
}
} }