<commit_before>package me.avery246813579.hotpotato.commands;

import java.util.ArrayList;
import java.util.Arrays;

import me.avery246813579.hotpotato.HotPotato;
import me.avery246813579.hotpotato.game.GameManager;
import me.avery246813579.hotpotato.game.GamePlayer;
import me.avery246813579.hotpotato.game.GameState;
import me.avery246813579.hotpotato.util.MessageUtil;

import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class StartCommand extends GameClass {
	public StartCommand() {
		super("start", "hotpotato.command.start", new ArrayList<GameState>(Arrays.asList(GameState.Recruit)));
	}

	@Override
	public void runCommand(CommandSender sender, String[] args) {
		Player player = (Player) sender;

		if (HotPotato.findGame(player) == null) {
			MessageUtil.sendTextMessage(sender, "noArenaFound");
			return;
		}

		GameManager gameManager = HotPotato.findGame(args[1]);
		gameManager.setForceStart(true);
		for(GamePlayer gamePlayer : gameManager.getGamePlayers()){
			MessageUtil.sendTextMessage(gamePlayer.getPlayer(), "forceStart", player.getName());
		}
	}
}
<commit_msg>Fixed a bug in the start command<commit_after>package me.avery246813579.hotpotato.commands;

import java.util.ArrayList;
import java.util.Arrays;

import me.avery246813579.hotpotato.HotPotato;
import me.avery246813579.hotpotato.game.GameManager;
import me.avery246813579.hotpotato.game.GamePlayer;
import me.avery246813579.hotpotato.game.GameState;
import me.avery246813579.hotpotato.util.MessageUtil;

import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

public class StartCommand extends GameClass {
	public StartCommand() {
		super("start", "hotpotato.command.start", new ArrayList<GameState>(Arrays.asList(GameState.Recruit)));
	}

	@Override
	public void runCommand(CommandSender sender, String[] args) {
		Player player = (Player) sender;

		if (args.length == 1) {
			MessageUtil.sendTextMessage(sender, "notEnoughArgs");
		} else {
			if (HotPotato.findGame(player) == null) {
				MessageUtil.sendTextMessage(sender, "noArenaFound");
				return;
			}

			GameManager gameManager = HotPotato.findGame(args[1]);
			gameManager.setForceStart(true);
			for (GamePlayer gamePlayer : gameManager.getGamePlayers()) {
				MessageUtil.sendTextMessage(gamePlayer.getPlayer(), "forceStart", player.getName());
			}
		}
	}
}

{'fraction_non_alphanumeric': 0.11513157894736842, 'fraction_numerical': 0.04564144736842105, 'mean_word_length': 4.820574162679426, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5997969', 'n_tokens_mistral': 914, 'n_tokens_neox': 782, 'n_words': 129}