mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-03 14:38:56 +00:00
1 parent
ae3925218b
commit
c16d3ee17a
1 file changed
+6
-22
@@ -1,6 +1,12 @@
|
|||||||
package me.ShermansWorld.AlathraWar;
|
package me.ShermansWorld.AlathraWar;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
|
|
||||||
|
import com.palmergames.bukkit.towny.object.Nation;
|
||||||
|
import com.palmergames.bukkit.towny.object.Town;
|
||||||
|
|
||||||
|
import me.ShermansWorld.AlathraWar.data.WarData;
|
||||||
|
|
||||||
public class War {
|
public class War {
|
||||||
|
|
||||||
@@ -63,14 +69,7 @@ public class War {
|
|||||||
} else if(side2.equalsIgnoreCase(side)) {
|
} else if(side2.equalsIgnoreCase(side)) {
|
||||||
if (!side2Towns.contains(town)) {
|
if (!side2Towns.contains(town)) {
|
||||||
side2Towns.add(town);
|
side2Towns.add(town);
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!duplicate) {
|
|
||||||
this.side2Players.add(playerName);
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!duplicate) {
|
|
||||||
this.side2Players.add(playerName);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,21 +83,6 @@ public class War {
|
|||||||
surrenderedTowns.add(town);
|
surrenderedTowns.add(town);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removePlayerSide2(final String playerName) {
|
|
||||||
if (!side2Players.isEmpty()) {
|
|
||||||
for (int i = 0; i < this.side2Players.size(); ++i) {
|
|
||||||
if (playerName.equalsIgnoreCase(this.side2Players.get(i))) {
|
|
||||||
this.side2Players.remove(i);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getId() {
|
|
||||||
return this.id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return this.name;
|
return this.name;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user