Skip to content

Commit

Permalink
...who aren't spectators
Browse files Browse the repository at this point in the history
  • Loading branch information
buj committed May 20, 2024
1 parent 764771b commit 6774b66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/darkdustry/commands/ClientCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ public static void load() {
.register((args, player) -> {
if (alreadyVoting(player, vote)) return;

if (Groups.player.size() < 4) Bundle.send("commands.1va.insufficient-players");
if (Groups.player.count(x -> config.mode.enableSpectate && x.team() != config.mode.spectatorTeam) < 4)
{
Bundle.send("commands.1va.insufficient-players");
return;
}

var map = args.length > 0 ? Find.map(args[0]) : maps.getNextMap(instance.lastMode, state.map);
if (notFound(player, map)) return;
Expand Down

0 comments on commit 6774b66

Please sign in to comment.