mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Id Files for other Plugins
This commit is contained in:
parent
680d41acd2
commit
bad062d4e6
@ -162,6 +162,14 @@ public class EditWorld {
|
|||||||
// World
|
// World
|
||||||
p.copyDirectory(file, new File("DXL_Edit_" + eworld.id));
|
p.copyDirectory(file, new File("DXL_Edit_" + eworld.id));
|
||||||
|
|
||||||
|
// Id File
|
||||||
|
File idFile = new File("DXL_Edit_" + eworld.id + "/.id_" + name);
|
||||||
|
try {
|
||||||
|
idFile.createNewFile();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
eworld.world = p.getServer().createWorld(WorldCreator.name("DXL_Edit_" + eworld.id));
|
eworld.world = p.getServer().createWorld(WorldCreator.name("DXL_Edit_" + eworld.id));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -183,14 +191,6 @@ public class EditWorld {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Id File
|
|
||||||
File idFile = new File("DXL_Edit_" + eworld.id + "/.id_" + name);
|
|
||||||
try {
|
|
||||||
idFile.createNewFile();
|
|
||||||
} catch (IOException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
|
|
||||||
return eworld;
|
return eworld;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,6 +268,14 @@ public class GameWorld {
|
|||||||
// World
|
// World
|
||||||
p.copyDirectory(file, new File("DXL_Game_" + gworld.id));
|
p.copyDirectory(file, new File("DXL_Game_" + gworld.id));
|
||||||
|
|
||||||
|
// Id File
|
||||||
|
File idFile = new File("DXL_Game_" + gworld.id + "/.id_" + name);
|
||||||
|
try {
|
||||||
|
idFile.createNewFile();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
gworld.world = p.getServer().createWorld(WorldCreator.name("DXL_Game_" + gworld.id));
|
gworld.world = p.getServer().createWorld(WorldCreator.name("DXL_Game_" + gworld.id));
|
||||||
|
|
||||||
ObjectInputStream os;
|
ObjectInputStream os;
|
||||||
|
Loading…
Reference in New Issue
Block a user