mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-01-06 18:47:52 +01:00
added logging
This commit is contained in:
parent
2f24400415
commit
67cd19b5f9
@ -87,12 +87,14 @@ public class WorldConfig {
|
||||
public static void create(UUID uuid, WorldTemplate template) {
|
||||
DependenceConfig dc = new DependenceConfig(uuid);
|
||||
String worldname = dc.getWorldname();
|
||||
WorldSystem.logger().log(Level.INFO, PluginConfig.getWorlddir() + worldname);
|
||||
File file = new File(PluginConfig.getWorlddir() + worldname + "/worldconfig.yml");
|
||||
try {
|
||||
file.createNewFile();
|
||||
} catch (IOException e1) {
|
||||
e1.printStackTrace();
|
||||
WorldSystem.logger().log(Level.SEVERE,"Error while creating worldconfig for " + uuid.toString());
|
||||
WorldSystem.logger().log(Level.SEVERE,e1.getMessage());
|
||||
e1.printStackTrace();
|
||||
}
|
||||
YamlConfiguration cfg = YamlConfiguration.loadConfiguration(file);
|
||||
cfg.set("Informations.ID", dc.getID());
|
||||
|
Loading…
Reference in New Issue
Block a user