mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 22:15:24 +00:00
Fixed setWars()
This commit is contained in:
1 parent
7f20a552b6
commit
214ff299a8
1 file changed
+1
-2
@@ -40,14 +40,13 @@ public class Main extends JavaPlugin {
|
|||||||
econ = null;
|
econ = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
private static void initData() {
|
private static void initData() {
|
||||||
File userDataFolder = new File("plugins" + File.separator + "AlathraWar" + File.separator + "userdata");
|
File userDataFolder = new File("plugins" + File.separator + "AlathraWar" + File.separator + "userdata");
|
||||||
if (!userDataFolder.exists()) {
|
if (!userDataFolder.exists()) {
|
||||||
userDataFolder.mkdirs();
|
userDataFolder.mkdirs();
|
||||||
}
|
}
|
||||||
|
|
||||||
War.wars = WarData.createWars();
|
WarData.setWars(WarData.createWars());
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Set<String> siegeSet = (Set<String>) siegeData.getConfig().getConfigurationSection("Sieges").getKeys(false);
|
Set<String> siegeSet = (Set<String>) siegeData.getConfig().getConfigurationSection("Sieges").getKeys(false);
|
||||||
|
|||||||
Reference in new issue
Block a user