/** Loads the ban list from the file (adds every entry, does not clear the current list). */
  public void loadBanList() {
    if (this.fileName.isFile()) {
      BufferedReader bufferedreader;

      try {
        bufferedreader = new BufferedReader(new FileReader(this.fileName));
      } catch (FileNotFoundException filenotfoundexception) {
        throw new Error();
      }

      String s;

      try {
        while ((s = bufferedreader.readLine()) != null) {
          if (!s.startsWith("#")) {
            BanEntry banentry = BanEntry.parse(s);

            if (banentry != null) {
              this.theBanList.putLower(banentry.getBannedUsername(), banentry);
            }
          }
        }
      } catch (IOException ioexception) {
        MinecraftServer.getServer()
            .getLogAgent()
            .logSevereException("Could not load ban list", ioexception);
      }
    }
  }
 public void put(BanEntry par1BanEntry) {
   this.theBanList.putLower(par1BanEntry.getBannedUsername(), par1BanEntry);
   this.saveToFileWithHeader();
 }