Skip to content

Commit de2a11a

Browse files
HMS-CV-UnicornRedned235
authored andcommitted
Fix teamStats not being respected in HighestStatCondition
1 parent 284f51d commit de2a11a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugin/src/main/java/org/battleplugins/arena/competition/victory/types/HighestStatCondition.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.battleplugins.arena.stat.ArenaStats;
1212
import org.battleplugins.arena.stat.StatHolder;
1313
import org.battleplugins.arena.team.ArenaTeam;
14+
import org.bukkit.Bukkit;
1415

1516
import java.util.Set;
1617
import java.util.stream.Collectors;
@@ -112,7 +113,7 @@ public Set<ArenaPlayer> identifyPotentialVictors() {
112113
// the victory based on whether the team won. If the player is to
113114
// win individually, their team should just contain them, or be empty.
114115
ArenaTeam team = player.getTeam();
115-
if (team == null || this.getCompetition().getArena().getTeams().isNonTeamGame()) {
116+
if (team == null || this.getCompetition().getArena().getTeams().isNonTeamGame() || !this.teamStats) {
116117
return Stream.of(player);
117118
}
118119

0 commit comments

Comments
 (0)