public void handleCommand(boolean admin, String command, String sender) {
        try {
            String[] cmd = command.split(" ");
            String commandName = cmd[0];
            StringBuilder commandContent = new StringBuilder();
            for (int i = 1; i < cmd.length; ++i) {
                commandContent.append(cmd[i]);
                if (i + 1 < cmd.length)
                    commandContent.append(" ");
            }

            Command run = findCommand(commandName);
            if (run != null)
                run.execute(commandContent.toString(), admin);
            else
                actionCenter.sendMessage(sender, "Command not found!");
        } catch (Exception e) {
            System.out.println(e.getMessage());
            e.printStackTrace();
            actionCenter.sendMessage(sender, "An error occured executing the command.");
        }
    }