* create new statistics handler instance
*/
private void createStatisticsHander() {
if (getConfig().getBoolean("settings.enableStatistics", true))
try {
StatisticsFactory statisticsHandler = new StatisticsFactory();
statisticsModule = statisticsHandler.getStatisticsModuleByName(getConfig().getString("settings.statisticsModule", "file"),
getConfig().getConfigurationSection("settings.statisticsSettings"));
} catch (Exception e) {
SimpleSpleef.log.warning("[SimpleSpleef] Could not initiate statistics module - settings bugged somehow or database error. Disabling statistics for now.");
statisticsModule = null;
}