protected void configureUserStatistics() throws ConfigurationException, IOException {
boolean registerStatisticsCommands = true;
switch (settings.getInt("/user/statistics/type")) {
case 0: // none
registerStatisticsCommands = false;
userStatistics = new NoUserStatistics();
break;
case 2:
if (settings.get("/user/statistics/remote/host") == null || settings.get("/user/statistics/remote/port") == null || settings.get("/user/statistics/remote/retry_interval") == null) {
throw new ConfigurationException("must specify {host, port, retry_interval} when using remote statistics");
}