@Override
	public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {

		ArrayList<Game> games = gm.games;
		if (args.length >= 1) {
			if (args[0].equalsIgnoreCase("join")) {
				if (args.length > 1) {
					if (Integer.parseInt(args[1]) < games.size() && Integer.parseInt(args[1]) >= 0) {
						for (int i = 0; i < games.size(); i++) {
							if (games.get(i).getPlayerList().contains((Player) sender)) {
								sendMessage((Player) sender, ChatColor.RED
								        + "You are allready in a game!");
								return true;
							}
						}
					} else {

						sendMessage((Player) sender, ChatColor.RED
						        + "Not an arena! Type /maze arenas To see avible arenas");
						return true;
					}

					games.get(Integer.parseInt(args[1])).add((Player) sender);
					sendMessage(sender, ChatColor.GREEN + "Succesfully joined game");
					return true;
				} else {
					sendMessage(sender, ChatColor.RED + "Not a valid agument. /maze join <Arena>");
					return true;
				}
			}
		}

		sendMessage(sender, ChatColor.RED + "Not a valid command. Type /maze help");

		return false;
	}