DAORegister.get().get(AccountDAO.class).addBan(username, reason, expire);
player.sendPrivateText("You have banned account " + username + " (character: " + bannedName + ") until " + expireStr + " for: " + reason);
// logging
logger.info(player.getName() + " has banned account " + username + " (character: " + bannedName + ") until " + expireStr + " for: " + reason);
new GameEvent(player.getName(), "ban", bannedName, expireStr, reason).raise();
SingletonRepository.getRuleProcessor().sendMessageToSupporters("JailKeeper",
player.getName() + " banned account " + username + " (character: " + bannedName + ") until " + expireStr
+ ". Reason: " + reason + ".");
} catch (SQLException e) {