public void tempban(String reason, Calendar duration, int greason) {
        if (lastmonthfameids == null) {
            throw new RuntimeException("Trying to ban a non-loaded character (testhack)");
        }

        tempban(reason, duration, greason, client.getAccID());
        client.getSession().close();
    }