@Override
	public void run() {
		for(Player p : DeityNether.plugin.getServer().getOnlinePlayers()){
			if(p.getWorld() == DeityNether.plugin.getServer().getWorld(DeityNether.config.getNetherWorldName())){
				if(!p.hasPermission(DeityNether.OVERRIDE_PERMISSION) && p.hasPermission(DeityNether.GENERAL_PERMISSION)){
					PlayerStats.addTime(p);
					checkPlayer(p);
				}
			}else{
				if(PlayerStats.getTimeWaited(p) != NEEDED_WAIT_TIME)
					PlayerStats.addWaitTime(p);
			}
		}
		
		for(OfflinePlayer p : DeityNether.plugin.getServer().getOfflinePlayers()){
				PlayerStats.addWaitTime(p);
		}
		
		Timestamp now = new Timestamp(System.currentTimeMillis());
		Timestamp nextReset = DeityNether.config.getNextReset();
		if(now.after(nextReset) || now.equals(nextReset)){
			DeityNether.config.setResetStatus(true);
		}
	}