Raid leave and tp on death

This commit is contained in:
Aubri Seebauer committed 2023-04-03 15:40:17 -04:00
1 parent d6e5518c1e
commit aca1a685aa
3 files changed
+60 -5

No files matched your search

@@ -130,15 +130,15 @@ public class Main extends JavaPlugin {
List<Town> townList = TownyAPI.getInstance().getTowns();
for (final Town town : townList) {
if (town.getName().equalsIgnoreCase(
siegeData.getConfig().getString("Raids." + raidsTempList.get(i) + ".town"))) {
raidData.getConfig().getString("Raids." + raidsTempList.get(i) + ".town"))) {
raidTown = town;
}
}
Raid raid = new Raid(Integer.parseInt(raidsTempList.get(i)), raidWar, raidTown,
siegeData.getConfig().getString("Raids." + raidsTempList.get(i) + ".raiders"),
siegeData.getConfig().getString("Raids." + raidsTempList.get(i) + ".defenders"),
siegeData.getConfig().getBoolean("Raids." + raidsTempList.get(i) + ".side1areraiders"),
siegeData.getConfig().getBoolean("Raids." + raidsTempList.get(i) + ".side2areraiders"));
raidData.getConfig().getString("Raids." + raidsTempList.get(i) + ".raiders"),
raidData.getConfig().getString("Raids." + raidsTempList.get(i) + ".defenders"),
raidData.getConfig().getBoolean("Raids." + raidsTempList.get(i) + ".side1areraiders"),
raidData.getConfig().getBoolean("Raids." + raidsTempList.get(i) + ".side2areraiders"));
raid.start();
}
} catch (NullPointerException e) {