public void timechk() {
        for (World w : plugin.gmtWorlds) {
            if (plugin.getConfig().getBoolean("worlds." + w.getName() + ".keep_night")
                    && plugin.gmtPlayerCount.containsKey(w.getName())
                    && plugin.gmtHasSwitched.contains(w.getName())) {
                if (plugin.gmtPlayerCount.get(w.getName()) > 0) {
                    Long now = w.getTime();
                    Long dusk = 21500L;
                    Long dawn = plugin.getConfig().getLong("worlds." + w.getName() + ".time") + 1000;
                    if (now < dawn || now > dusk) {
                        // set the time to dawn
                        w.setTime(dawn);
                    }
                }
            }
        }
    }