fix: replace afk team with normal team
This commit is contained in:
parent
c4f7aecfa6
commit
6bcd8324fb
1 changed files with 6 additions and 0 deletions
|
@ -125,6 +125,12 @@ public class TeamManager {
|
||||||
public Team getTeamByPlayer(final String player) {
|
public Team getTeamByPlayer(final String player) {
|
||||||
for (final Team team : this.teams) {
|
for (final Team team : this.teams) {
|
||||||
if (team.hasEntry(player)) {
|
if (team.hasEntry(player)) {
|
||||||
|
if (team.getName().startsWith("~")) {
|
||||||
|
for (final Team team2 : this.teams) {
|
||||||
|
if (team2.getName().equals(team.getName().replace("~", "")))
|
||||||
|
return team2;
|
||||||
|
}
|
||||||
|
}
|
||||||
return team;
|
return team;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue