Program: 93985
Project: 93985
Buggy source:
public void onPlayerJoin(PlayerJoinEvent event){
  final Player player=event.getPlayer();
  EBean.checkIP(player.getName(),Util.craftFirePlayer.getIP(player));
  player.teleport(Util.landLocation(player.getLocation()));
  if (Config.link_rename && !Util.checkOtherName(player.getName()).equals(player.getName())) {
    String message=event.getJoinMessage();
    message=message.replaceAll(player.getName(),player.getDisplayName());
    event.setJoinMessage(message);
  }
  this.plugin.AuthDB_PasswordTries.put(player.getName(),"String_Node_Str");
  if (Config.session_enabled && Config.session_length != 0) {
    long timestamp=System.currentTimeMillis() / 1000;
    if (Util.authDBplayer.sessionTime(player) != 0) {
      long storedtime=Util.authDBplayer.sessionTime(player);
      Util.logging.Debug("String_Node_Str" + player.getName() + "String_Node_Str"+ storedtime);
      long timedifference=timestamp - storedtime;
      Util.logging.Debug("String_Node_Str" + timedifference);
      Util.logging.Debug("String_Node_Str" + Config.session_length);
      if (timedifference > Config.session_length) {
        sessionallow=false;
      }
 else {
        sessionallow=true;
      }
    }
 else {
      sessionallow=false;
    }
  }
  try {
    if (sessionallow == false) {
      int time=0;
      if (Config.login_timeout > 0 && plugin.isRegistered("String_Node_Str",player.getName())) {
        Util.logging.Debug("String_Node_Str" + Config.login_timeout + "String_Node_Str");
        time=Config.login_timeout;
      }
 else       if (Config.register_timeout > 0 && !plugin.isRegistered("String_Node_Str",player.getName())) {
        Util.logging.Debug("String_Node_Str" + Config.register_timeout + "String_Node_Str");
        time=Config.register_timeout;
      }
      if (time > 0) {
        Schedule=plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,new Runnable(){
          @Override public void run(){
            checkTimeout(player);
          }
        }
,time);
        EBean eBeanClass=EBean.checkPlayer(player,true);
        Util.logging.Debug("String_Node_Str" + Schedule);
        eBeanClass.setTimeoutid(Schedule);
        AuthDB.database.save(eBeanClass);
        if (AuthDB.AuthDB_Timeouts.put(player.getName(),Schedule) != null) {
          Util.logging.Debug(player.getName() + "String_Node_Str");
        }
      }
    }
    if (Config.custom_enabled && (Config.custom_encryption.equals("String_Node_Str") || 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());
    }
    EBean eBeanClass=EBean.checkPlayer(player,true);
    if ((eBeanClass.getReloadtime() + 30) >= Util.timeStamp()) {
      sessionallow=true;
    }
    if (Config.onlineMode && this.plugin.isRegistered("String_Node_Str",player.getName())) {
      sessionallow=true;
    }
    if (sessionallow) {
      long thetimestamp=System.currentTimeMillis() / 1000;
      this.plugin.AuthDB_AuthTime.put(player.getName(),thetimestamp);
      Processes.Login(event.getPlayer());
      Messages.sendMessage(Message.session_valid,player,null);
    }
 else     if (this.plugin.isRegistered("String_Node_Str",player.getName())) {
      if (Config.hasBackpack) {
        BackpackPlayer BackpackPlayer=BackpackManager.getBackpackPlayer((Player)player);
        BackpackPlayer.createBackpack();
        this.plugin.storeInventory(player,BackpackPlayer.getInventory().getContents(),player.getInventory().getArmorContents());
      }
 else {
        this.plugin.storeInventory(player,player.getInventory().getContents(),player.getInventory().getArmorContents());
      }
      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();
            }
            Util.craftFirePlayer.clearArmorinventory(player);
          }
        }
      }
,20);
      if (Util.toLoginMethod(Config.login_method).equalsIgnoreCase("String_Node_Str")) {
        ZSpout spout=new ZSpout();
        if (!spout.popGUI(player)) {
          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(),player.getInventory().getArmorContents());
      }
 else {
        this.plugin.storeInventory(player,player.getInventory().getContents(),player.getInventory().getArmorContents());
      }
      player.getInventory().clear();
      Util.craftFirePlayer.clearArmorinventory(player);
      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.AuthDB_AuthTime.put(player.getName(),thetimestamp);
      Processes.Login(player);
    }
  }
 catch (  IOException e) {
    Util.logging.Severe("String_Node_Str" + AuthDB.pluginName + "String_Node_Str");
    player.kickPlayer("String_Node_Str");
    Util.logging.StackTrace(e.getStackTrace(),Thread.currentThread().getStackTrace()[1].getMethodName(),Thread.currentThread().getStackTrace()[1].getLineNumber(),Thread.currentThread().getStackTrace()[1].getClassName(),Thread.currentThread().getStackTrace()[1].getFileName());
    player.sendMessage(Color.red + "String_Node_Str");
  }
}

Fixed version (ground truth):
public void onPlayerJoin(PlayerJoinEvent event){
  final Player player=event.getPlayer();
  EBean.checkIP(player.getName(),Util.craftFirePlayer.getIP(player));
  player.teleport(Util.landLocation(player.getLocation()));
  if (Config.link_rename && !Util.checkOtherName(player.getName()).equals(player.getName())) {
    String message=event.getJoinMessage();
    message=message.replaceAll(player.getName(),player.getDisplayName());
    event.setJoinMessage(message);
  }
  this.plugin.AuthDB_PasswordTries.put(player.getName(),"String_Node_Str");
  if (Config.session_enabled && Config.session_length != 0) {
    long timestamp=System.currentTimeMillis() / 1000;
    if (Util.authDBplayer.sessionTime(player) != 0) {
      long storedtime=Util.authDBplayer.sessionTime(player);
      Util.logging.Debug("String_Node_Str" + player.getName() + "String_Node_Str"+ storedtime);
      long timedifference=timestamp - storedtime;
      Util.logging.Debug("String_Node_Str" + timedifference);
      Util.logging.Debug("String_Node_Str" + Config.session_length);
      if (timedifference > Config.session_length) {
        sessionallow=false;
      }
 else {
        sessionallow=true;
      }
    }
 else {
      sessionallow=false;
    }
  }
  try {
    if (sessionallow == false) {
      int time=0;
      if (Config.login_timeout > 0 && plugin.isRegistered("String_Node_Str",player.getName())) {
        Util.logging.Debug("String_Node_Str" + Config.login_timeout + "String_Node_Str");
        time=Config.login_timeout;
      }
 else       if (Config.register_timeout > 0 && !plugin.isRegistered("String_Node_Str",player.getName())) {
        Util.logging.Debug("String_Node_Str" + Config.register_timeout + "String_Node_Str");
        time=Config.register_timeout;
      }
      if (time > 0) {
        Schedule=plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,new Runnable(){
          @Override public void run(){
            checkTimeout(player);
          }
        }
,time);
        EBean eBeanClass=EBean.checkPlayer(player,true);
        Util.logging.Debug("String_Node_Str" + Schedule);
        eBeanClass.setTimeoutid(Schedule);
        AuthDB.database.save(eBeanClass);
        if (AuthDB.AuthDB_Timeouts.put(player.getName(),Schedule) != null) {
          Util.logging.Debug(player.getName() + "String_Node_Str");
        }
      }
    }
    if (Config.custom_enabled && (Config.custom_encryption.equals("String_Node_Str") || 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());
    }
    EBean eBeanClass=EBean.checkPlayer(player,true);
    if ((eBeanClass.getReloadtime() + 30) >= Util.timeStamp()) {
      sessionallow=true;
    }
    if (Config.onlineMode && this.plugin.isRegistered("String_Node_Str",player.getName())) {
      sessionallow=true;
    }
    if (sessionallow) {
      long thetimestamp=System.currentTimeMillis() / 1000;
      this.plugin.AuthDB_AuthTime.put(player.getName(),thetimestamp);
      Processes.Login(event.getPlayer());
      Messages.sendMessage(Message.session_valid,player,null);
    }
 else     if (this.plugin.isRegistered("String_Node_Str",player.getName())) {
      if (Config.hasBackpack) {
        BackpackPlayer BackpackPlayer=BackpackManager.getBackpackPlayer((Player)player);
        BackpackPlayer.createBackpack();
        this.plugin.storeInventory(player,BackpackPlayer.getInventory().getContents(),player.getInventory().getArmorContents());
      }
 else {
        this.plugin.storeInventory(player,player.getInventory().getContents(),player.getInventory().getArmorContents());
      }
      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();
            }
            Util.craftFirePlayer.clearArmorinventory(player);
          }
        }
      }
,20);
      if (Util.toLoginMethod(Config.login_method).equalsIgnoreCase("String_Node_Str")) {
        if (Config.hasSpout) {
          ZSpout spout=new ZSpout();
          if (!spout.popGUI(player)) {
            Messages.sendMessage(Message.login_prompt,player,null);
          }
        }
 else {
          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(),player.getInventory().getArmorContents());
      }
 else {
        this.plugin.storeInventory(player,player.getInventory().getContents(),player.getInventory().getArmorContents());
      }
      player.getInventory().clear();
      Util.craftFirePlayer.clearArmorinventory(player);
      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.AuthDB_AuthTime.put(player.getName(),thetimestamp);
      Processes.Login(player);
    }
  }
 catch (  IOException e) {
    Util.logging.Severe("String_Node_Str" + AuthDB.pluginName + "String_Node_Str");
    player.kickPlayer("String_Node_Str");
    Util.logging.StackTrace(e.getStackTrace(),Thread.currentThread().getStackTrace()[1].getMethodName(),Thread.currentThread().getStackTrace()[1].getLineNumber(),Thread.currentThread().getStackTrace()[1].getClassName(),Thread.currentThread().getStackTrace()[1].getFileName());
    player.sendMessage(Color.red + "String_Node_Str");
  }
}