Update for new YamlStorage constructor

This commit is contained in:
fullwall 2012-08-05 13:19:16 +08:00
parent e4ccfc10fe
commit 378077edd6
3 changed files with 7 additions and 6 deletions

View File

@ -313,7 +313,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
"Citizens NPC Storage"); "Citizens NPC Storage");
} }
if (saves == null) { if (saves == null) {
saves = new YamlStorage(getDataFolder() + File.separator + Setting.STORAGE_FILE.asString(), saves = new YamlStorage(new File(getDataFolder(), Setting.STORAGE_FILE.asString()),
"Citizens NPC Storage"); "Citizens NPC Storage");
} }
Messaging.logF("Save method set to %s.", saves.toString()); Messaging.logF("Save method set to %s.", saves.toString());

View File

@ -16,7 +16,7 @@ public class Settings {
private final DataKey root; private final DataKey root;
public Settings(File folder) { public Settings(File folder) {
config = new YamlStorage(folder + File.separator + "config.yml", "Citizens Configuration"); config = new YamlStorage(new File(folder, "config.yml"), "Citizens Configuration");
root = config.getKey(""); root = config.getKey("");
config.load(); config.load();

View File

@ -23,6 +23,7 @@ import org.bukkit.util.Vector;
import com.google.common.base.Splitter; import com.google.common.base.Splitter;
public class Util { public class Util {
// Static class for small (emphasis small) utility methods // Static class for small (emphasis small) utility methods
private Util() { private Util() {
} }