mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 11:38:26 +01:00
Update for new YamlStorage constructor
This commit is contained in:
parent
e4ccfc10fe
commit
378077edd6
@ -313,7 +313,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
"Citizens NPC Storage");
|
||||
}
|
||||
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");
|
||||
}
|
||||
Messaging.logF("Save method set to %s.", saves.toString());
|
||||
|
@ -16,7 +16,7 @@ public class Settings {
|
||||
private final DataKey root;
|
||||
|
||||
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("");
|
||||
|
||||
config.load();
|
||||
|
@ -23,6 +23,7 @@ import org.bukkit.util.Vector;
|
||||
import com.google.common.base.Splitter;
|
||||
|
||||
public class Util {
|
||||
|
||||
// Static class for small (emphasis small) utility methods
|
||||
private Util() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user