Program: 94058
Project: 94058
Buggy source:
public void onPlayerJoin(PlayerJoinEvent event){
  final Player player=event.getPlayer();
  player.teleport(Util.LandLocation(player.getLocation()));
  if (Config.link_rename && Util.CheckOtherName(player.getName()) != player.getName()) {
    String message=event.getJoinMessage();
    message=message.replaceAll(player.getName(),player.getDisplayName());
    event.setJoinMessage(message);
  }
  this.plugin.AuthPasswordTriesDB.put(player.getName(),"String_Node_Str");
  try {
    if (Config.session_length != 0) {
      long timestamp=System.currentTimeMillis() / 1000;
      if (this.plugin.TimeoutTask("String_Node_Str",player,"String_Node_Str") == true) {
        long storedtime=Long.parseLong(this.plugin.db2.get(Encryption.md5(player.getName() + Util.GetIP(player))));
        Util.Debug("String_Node_Str" + player.getName() + "String_Node_Str"+ storedtime);
        long timedifference=timestamp - storedtime;
        Util.Debug("String_Node_Str" + timedifference);
        if (timedifference > Config.session_length) {
          sessionallow=false;
        }
 else {
          sessionallow=true;
        }
      }
 else {
        sessionallow=false;
      }
    }
    try {
      if (Config.login_timeout > 0 && sessionallow == false) {
        Util.Debug("String_Node_Str" + Config.login_timeout);
        Schedule=plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,new Runnable(){
          @Override public void run(){
            try {
              CheckTimeout(player);
            }
 catch (            IOException e) {
              Util.Log("String_Node_Str","String_Node_Str");
              e.printStackTrace();
            }
          }
        }
,Config.login_timeout);
        if (this.plugin.TimeoutTask("String_Node_Str",player,"String_Node_Str" + Schedule))         Util.Debug(player.getName() + "String_Node_Str");
        this.plugin.updateDb();
      }
      if (Config.custom_enabled)       if (Config.custom_encryption == null) {
        player.sendMessage("String_Node_Str");
      }
      if (event.getPlayer().getHealth() == 0 || event.getPlayer().getHealth() == -1) {
        player.setHealth(20);
        player.teleport(player.getWorld().getSpawnLocation());
      }
      if (sessionallow) {
        Messages.SendMessage(Message.session_valid,player,null);
        long thetimestamp=System.currentTimeMillis() / 1000;
        this.plugin.AuthTimeDB.put(player.getName(),"String_Node_Str" + thetimestamp);
        Processes.Login(event.getPlayer());
      }
 else       if (this.plugin.isRegistered("String_Node_Str",player.getName()) || this.plugin.isRegistered("String_Node_Str",Util.CheckOtherName(player.getName()))) {
        if (Config.HasBackpack) {
          BackpackPlayer BackpackPlayer=BackpackManager.getBackpackPlayer((Player)player);
          BackpackPlayer.createBackpack();
          this.plugin.storeInventory(player,BackpackPlayer.getContents());
        }
 else {
          this.plugin.storeInventory(player,player.getInventory().getContents());
        }
        player.getInventory().clear();
        plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,new Runnable(){
          @Override public void run(){
            if (!plugin.isAuthorized(player)) {
              if (player.getInventory() != null) {
                player.getInventory().clear();
              }
            }
          }
        }
,20);
        if (Util.ToLoginMethod(Config.login_method).equalsIgnoreCase("String_Node_Str")) {
          Messages.SendMessage(Message.login_prompt,player,null);
        }
 else {
          Messages.SendMessage(Message.login_normal,player,null);
        }
      }
 else       if (Config.register_force) {
        if (Config.HasBackpack) {
          BackpackPlayer BackpackPlayer=BackpackManager.getBackpackPlayer((Player)player);
          BackpackPlayer.createBackpack();
          this.plugin.storeInventory(player,BackpackPlayer.getInventory().getContents());
        }
 else {
          this.plugin.storeInventory(player,player.getInventory().getContents());
        }
        player.getInventory().clear();
        Messages.SendMessage(Message.welcome_guest,player,null);
      }
 else       if (!Config.register_force) {
        Messages.SendMessage(Message.welcome_guest,player,null);
      }
 else {
        long thetimestamp=System.currentTimeMillis() / 1000;
        this.plugin.AuthTimeDB.put(player.getName(),"String_Node_Str" + thetimestamp);
        Processes.Login(player);
      }
    }
 catch (    IOException e) {
      Util.Log("String_Node_Str","String_Node_Str" + AuthDB.PluginName + "String_Node_Str");
      player.kickPlayer("String_Node_Str");
      e.printStackTrace();
      player.sendMessage(Color.red + "String_Node_Str");
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void onPlayerJoin(PlayerJoinEvent event){
  final Player player=event.getPlayer();
  eBean.CheckIP(player.getName(),Util.GetIP(player));
  player.teleport(Util.LandLocation(player.getLocation()));
  if (Config.link_rename && Util.CheckOtherName(player.getName()) != player.getName()) {
    String message=event.getJoinMessage();
    message=message.replaceAll(player.getName(),player.getDisplayName());
    event.setJoinMessage(message);
  }
  this.plugin.AuthPasswordTriesDB.put(player.getName(),"String_Node_Str");
  try {
    if (Config.session_length != 0) {
      long timestamp=System.currentTimeMillis() / 1000;
      if (this.plugin.TimeoutTask("String_Node_Str",player,"String_Node_Str") == true) {
        long storedtime=Long.parseLong(this.plugin.db2.get(Encryption.md5(player.getName() + Util.GetIP(player))));
        Util.Debug("String_Node_Str" + player.getName() + "String_Node_Str"+ storedtime);
        long timedifference=timestamp - storedtime;
        Util.Debug("String_Node_Str" + timedifference);
        if (timedifference > Config.session_length) {
          sessionallow=false;
        }
 else {
          sessionallow=true;
        }
      }
 else {
        sessionallow=false;
      }
    }
    try {
      if (Config.login_timeout > 0 && sessionallow == false) {
        Util.Debug("String_Node_Str" + Config.login_timeout);
        Schedule=plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,new Runnable(){
          @Override public void run(){
            try {
              CheckTimeout(player);
            }
 catch (            IOException e) {
              Util.Log("String_Node_Str","String_Node_Str");
              e.printStackTrace();
            }
          }
        }
,Config.login_timeout);
        if (this.plugin.TimeoutTask("String_Node_Str",player,"String_Node_Str" + Schedule))         Util.Debug(player.getName() + "String_Node_Str");
        this.plugin.updateDb();
      }
      if (Config.custom_enabled)       if (Config.custom_encryption == null) {
        player.sendMessage("String_Node_Str");
      }
      if (event.getPlayer().getHealth() == 0 || event.getPlayer().getHealth() == -1) {
        player.setHealth(20);
        player.teleport(player.getWorld().getSpawnLocation());
      }
      if (sessionallow) {
        Messages.SendMessage(Message.session_valid,player,null);
        long thetimestamp=System.currentTimeMillis() / 1000;
        this.plugin.AuthTimeDB.put(player.getName(),"String_Node_Str" + thetimestamp);
        Processes.Login(event.getPlayer());
      }
 else       if (this.plugin.isRegistered("String_Node_Str",player.getName()) || this.plugin.isRegistered("String_Node_Str",Util.CheckOtherName(player.getName()))) {
        if (Config.HasBackpack) {
          BackpackPlayer BackpackPlayer=BackpackManager.getBackpackPlayer((Player)player);
          BackpackPlayer.createBackpack();
          this.plugin.storeInventory(player,BackpackPlayer.getContents());
        }
 else {
          this.plugin.storeInventory(player,player.getInventory().getContents());
        }
        player.getInventory().clear();
        plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,new Runnable(){
          @Override public void run(){
            if (!plugin.isAuthorized(player)) {
              if (player.getInventory() != null) {
                player.getInventory().clear();
              }
            }
          }
        }
,20);
        if (Util.ToLoginMethod(Config.login_method).equalsIgnoreCase("String_Node_Str")) {
          Messages.SendMessage(Message.login_prompt,player,null);
        }
 else {
          Messages.SendMessage(Message.login_normal,player,null);
        }
      }
 else       if (Config.register_force) {
        if (Config.HasBackpack) {
          BackpackPlayer BackpackPlayer=BackpackManager.getBackpackPlayer((Player)player);
          BackpackPlayer.createBackpack();
          this.plugin.storeInventory(player,BackpackPlayer.getInventory().getContents());
        }
 else {
          this.plugin.storeInventory(player,player.getInventory().getContents());
        }
        player.getInventory().clear();
        Messages.SendMessage(Message.welcome_guest,player,null);
      }
 else       if (!Config.register_force) {
        Messages.SendMessage(Message.welcome_guest,player,null);
      }
 else {
        long thetimestamp=System.currentTimeMillis() / 1000;
        this.plugin.AuthTimeDB.put(player.getName(),"String_Node_Str" + thetimestamp);
        Processes.Login(player);
      }
    }
 catch (    IOException e) {
      Util.Log("String_Node_Str","String_Node_Str" + AuthDB.PluginName + "String_Node_Str");
      player.kickPlayer("String_Node_Str");
      e.printStackTrace();
      player.sendMessage(Color.red + "String_Node_Str");
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}