mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 22:14:45 +00:00
Raid leave and tp on death
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user