Implement reset after win! #36
@ -31,10 +31,7 @@ import org.bukkit.inventory.meta.ItemMeta;
|
|||||||
import org.bukkit.scoreboard.Objective;
|
import org.bukkit.scoreboard.Objective;
|
||||||
import org.bukkit.scoreboard.Team;
|
import org.bukkit.scoreboard.Team;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.*;
|
||||||
import java.util.LinkedList;
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
public class MWTeam {
|
public class MWTeam {
|
||||||
private static final ItemStack bow = new ItemStack(Material.BOW);
|
private static final ItemStack bow = new ItemStack(Material.BOW);
|
||||||
@ -162,8 +159,11 @@ public class MWTeam {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void reset() {
|
public void reset() {
|
||||||
players.clear();
|
|
||||||
openInvitations.clear();
|
openInvitations.clear();
|
||||||
|
|
||||||
|
List<Player> tempPlayer = new ArrayList<>(players);
|
||||||
|
players.clear();
|
||||||
|
tempPlayer.forEach(this::join);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void invitePlayer(Player p) {
|
public void invitePlayer(Player p) {
|
||||||
|
@ -42,7 +42,6 @@ public class EndCountdown extends StateDependent {
|
|||||||
private void restart() {
|
private void restart() {
|
||||||
FightWorld.resetWorld();
|
FightWorld.resetWorld();
|
||||||
MissileWars.waiting();
|
MissileWars.waiting();
|
||||||
Bukkit.getOnlinePlayers().forEach(JoinListener::join);
|
|
||||||
}
|
}
|
||||||
YoyoNow markierte diese Unterhaltung als gelöst
Veraltet
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Na das ist mal eine abentheuerliche Intendation.