package me.chocoaa.paintball.cmds;

import me.chocoaa.paintball.Arena;
import me.chocoaa.paintball.ArenaManager;
import me.chocoaa.paintball.MessageManager;
import org.bukkit.entity.Player;

/**
 * Created by AhmedAbdulai on 01/05/2016.
 */
public class ForceStart extends SubCommand {
    @Override
    public void onCommand(Player p, String[] args) {

        if (args.length == 0) {
            MessageManager.getInstance().severe(p, "You must specify an arena ID!");
            return;
        }
        int id = 10;
        // any number

        try { id = Integer.parseInt(args[0]; }
        catch (Exception e) {
            MessageManager.getInstance().severe(p, args[0] + " is not a valid number!");
            return;
        }
        Arena a = ArenaManager.getInstance().getArena(id);

        if (a == null) {
            MessageManager.getInstance().severe(p, "There is no arena with ID " + id + "!");
            return;
        }

        if (a.isStarted()) {
            MessageManager.getInstance().severe(p, "Arena " + id + " has already started!");
        }
        return;

        a.start();
        MessageManager.getInstance().good(p, "Force started Arena " + a.getID() + "!");

    }


    @Override
    public String name() {
        return "forcestart";
    }

    @Override
    public String info() {
        return "Force start an arena.";
    }

    @Override
    public String[] aliases() {
        return new String[] { "fstart", "start"};
    }
}

package me.chocoaa.paintball.cmds;

import me.chocoaa.paintball.Arena;
import me.chocoaa.paintball.ArenaManager;
import me.chocoaa.paintball.MessageManager;
import org.bukkit.entity.Player;

/**
 * Created by Chocoaa on 01/05/2016.
 */
public class ForceStart extends SubCommand {
    @Override
    public void onCommand(Player p, String[] args) {

        if (args.length == 0) {
            MessageManager.getInstance().severe(p, "You must specify an arena ID!");
            return;
        }
        int id = 10;
        // any number

        try { id = Integer.parseInt(args[0]; }
        catch (Exception e) {
            MessageManager.getInstance().severe(p, args[0] + " is not a valid number!");
            return;
        }
        Arena a = ArenaManager.getInstance().getArena(id);

        if (a == null) {
            MessageManager.getInstance().severe(p, "There is no arena with ID " + id + "!");
            return;
        }

        if (a.isStarted()) {
            MessageManager.getInstance().severe(p, "Arena " + id + " has already started!");
        }
        return;

        a.start();
        MessageManager.getInstance().good(p, "Force started Arena " + a.getID() + "!");

    }


    @Override
    public String name() {
        return "forcestart";
    }

    @Override
    public String info() {
        return "Force start an arena.";
    }

    @Override
    public String[] aliases() {
        return new String[] { "fstart", "start"};
    }
}

Update ForceStart.java