Add distribute items on team leave #34
@ -54,7 +54,7 @@ public class MWTeam {
|
|||||||
private final Location spawn;
|
private final Location spawn;
|
||||||
private final int portalZ;
|
private final int portalZ;
|
||||||
|
|
||||||
private final LinkedList<Player> players = new LinkedList<>();
|
private final LinkedList<Player> players = new LinkedList<>();
|
||||||
private final Set<Player> openInvitations = new HashSet<>();
|
private final Set<Player> openInvitations = new HashSet<>();
|
||||||
|
|
||||||
MWTeam(ChatColor color, Location spawn, String teamName, int portalZ) {
|
MWTeam(ChatColor color, Location spawn, String teamName, int portalZ) {
|
||||||
@ -62,7 +62,7 @@ public class MWTeam {
|
|||||||
this.color = color;
|
this.color = color;
|
||||||
this.spawn = spawn;
|
this.spawn = spawn;
|
||||||
this.portalZ = portalZ;
|
this.portalZ = portalZ;
|
||||||
if (FightScoreboard.getScoreboard().getTeam(teamName) == null)
|
if(FightScoreboard.getScoreboard().getTeam(teamName) == null)
|
||||||
sbteam = FightScoreboard.getScoreboard().registerNewTeam(teamName);
|
sbteam = FightScoreboard.getScoreboard().registerNewTeam(teamName);
|
||||||
else
|
else
|
||||||
sbteam = FightScoreboard.getScoreboard().getTeam(teamName);
|
sbteam = FightScoreboard.getScoreboard().getTeam(teamName);
|
||||||
@ -108,7 +108,7 @@ public class MWTeam {
|
|||||||
return portalZ;
|
return portalZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Location getSpawn() {
|
public Location getSpawn(){
|
||||||
return spawn;
|
return spawn;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ public class MWTeam {
|
|||||||
return MissileWars.getRedTeam();
|
return MissileWars.getRedTeam();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getColorCode() {
|
public String getColorCode(){
|
||||||
return "§" + color.getChar();
|
return "§" + color.getChar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren