Program: 58073
Project: 58073
Buggy source:
/** 
 * On Load.
 */
@Override final public void onEnable(){
  PlotMain.main=this;
  setupLogger();
  C.setupTranslations();
  C.saveTranslations();
  if (getJavaVersion() < 1.7) {
    sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    Bukkit.getPluginManager().disablePlugin(this);
    return;
  }
 else   if (getJavaVersion() < 1.8) {
    sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
  }
  configs();
  defaultFlags();
  if (Settings.METRICS) {
    try {
      final Metrics metrics=new Metrics(this);
      metrics.start();
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
 catch (    final Exception e) {
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
  }
 else {
    sendConsoleSenderMessage("String_Node_Str");
  }
  if (Settings.KILL_ROAD_MOBS) {
    killAllEntities();
  }
  if (C.ENABLED.s().length() > 0) {
    sendConsoleSenderMessage(C.ENABLED);
  }
  final String[] tables;
  if (Settings.ENABLE_CLUSTERS) {
    MainCommand.subCommands.add(new Cluster());
    tables=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  }
 else {
    tables=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"};
  }
  if (Settings.DB.USE_MYSQL) {
    try {
      mySQL=new MySQL(this,Settings.DB.HOST_NAME,Settings.DB.PORT,Settings.DB.DATABASE,Settings.DB.USER,Settings.DB.PASSWORD);
      connection=mySQL.openConnection();
{
        if (DBFunc.dbManager == null) {
          DBFunc.dbManager=new SQLManager(connection,Settings.DB.PREFIX);
        }
        final DatabaseMetaData meta=connection.getMetaData();
        ResultSet res=meta.getTables(null,null,Settings.DB.PREFIX + "String_Node_Str",null);
        if (!res.next()) {
          DBFunc.createTables("String_Node_Str",true);
        }
 else {
          for (          final String table : tables) {
            res=meta.getTables(null,null,Settings.DB.PREFIX + table,null);
            if (!res.next()) {
              DBFunc.createTables("String_Node_Str",false);
            }
          }
        }
      }
    }
 catch (    final Exception e) {
      Logger.add(LogLevel.DANGER,"String_Node_Str");
      sendConsoleSenderMessage("String_Node_Str");
      if ((config == null) || config.getBoolean("String_Node_Str")) {
        sendConsoleSenderMessage("String_Node_Str");
        e.printStackTrace();
        sendConsoleSenderMessage("String_Node_Str");
        sendConsoleSenderMessage("String_Node_Str");
      }
      Bukkit.getPluginManager().disablePlugin(this);
      return;
    }
    plots=DBFunc.getPlots();
    if (Settings.ENABLE_CLUSTERS) {
      ClusterManager.clusters=DBFunc.getClusters();
    }
  }
 else   if (Settings.DB.USE_MONGO) {
    sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
  }
 else   if (Settings.DB.USE_SQLITE) {
    try {
      connection=new SQLite(this,this.getDataFolder() + File.separator + Settings.DB.SQLITE_DB+ "String_Node_Str").openConnection();
{
        DBFunc.dbManager=new SQLManager(connection,Settings.DB.PREFIX);
        final DatabaseMetaData meta=connection.getMetaData();
        ResultSet res=meta.getTables(null,null,Settings.DB.PREFIX + "String_Node_Str",null);
        if (!res.next()) {
          DBFunc.createTables("String_Node_Str",true);
        }
 else {
          for (          final String table : tables) {
            res=meta.getTables(null,null,Settings.DB.PREFIX + table,null);
            if (!res.next()) {
              DBFunc.createTables("String_Node_Str",false);
            }
          }
        }
      }
    }
 catch (    final Exception e) {
      Logger.add(LogLevel.DANGER,"String_Node_Str");
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
      sendConsoleSenderMessage("String_Node_Str");
      e.printStackTrace();
      Bukkit.getPluginManager().disablePlugin(this);
      return;
    }
    plots=DBFunc.getPlots();
    if (Settings.ENABLE_CLUSTERS) {
      ClusterManager.clusters=DBFunc.getClusters();
    }
  }
 else {
    Logger.add(LogLevel.DANGER,"String_Node_Str");
    sendConsoleSenderMessage(C.PREFIX + "String_Node_Str");
    getServer().getPluginManager().disablePlugin(this);
    return;
  }
{
    final MainCommand command=new MainCommand();
    final PluginCommand plotCommand=getCommand("String_Node_Str");
    plotCommand.setExecutor(command);
    plotCommand.setAliases(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"));
    plotCommand.setTabCompleter(command);
  }
  getServer().getPluginManager().registerEvents(new PlayerEvents(),this);
  if (checkVersion(1,8,0)) {
    getServer().getPluginManager().registerEvents(new PlayerEvents_1_8(),this);
  }
  getServer().getPluginManager().registerEvents(this,this);
  getServer().getPluginManager().registerEvents(new InventoryListener(),this);
  PlotPlusListener.startRunnable(this);
  getServer().getPluginManager().registerEvents(new PlotPlusListener(),this);
  getServer().getPluginManager().registerEvents(new ForceFieldListener(),this);
  if (getServer().getPluginManager().getPlugin("String_Node_Str") != null) {
    barAPI=(BarAPI)getServer().getPluginManager().getPlugin("String_Node_Str");
  }
  if (getServer().getPluginManager().getPlugin("String_Node_Str") != null) {
    worldEdit=(WorldEditPlugin)getServer().getPluginManager().getPlugin("String_Node_Str");
    final String version=worldEdit.getDescription().getVersion();
    if ((version != null) && version.startsWith("String_Node_Str")) {
      PlotMain.sendConsoleSenderMessage("String_Node_Str");
      PlotMain.sendConsoleSenderMessage("String_Node_Str");
      PlotMain.sendConsoleSenderMessage("String_Node_Str");
    }
 else {
      getServer().getPluginManager().registerEvents(new WorldEditListener(),this);
      MainCommand.subCommands.add(new WE_Anywhere());
    }
  }
  if (Settings.AUTO_CLEAR) {
    ExpireManager.runTask();
  }
{
    if ((getServer().getPluginManager().getPlugin("String_Node_Str") != null) && getServer().getPluginManager().getPlugin("String_Node_Str").isEnabled()) {
      final RegisteredServiceProvider<Economy> economyProvider=getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
      if (economyProvider != null) {
        economy=economyProvider.getProvider();
        MainCommand.subCommands.add(new Buy());
      }
    }
    useEconomy=(economy != null);
  }
{
    getServer().getScheduler().scheduleSyncRepeatingTask(this,new Lag(),100L,1L);
  }
{
    if (checkVersion(1,8,0)) {
      try {
        AbstractSetBlock.setBlockManager=new SetBlockFast_1_8();
      }
 catch (      Throwable e) {
        e.printStackTrace();
        AbstractSetBlock.setBlockManager=new SetBlockSlow();
      }
    }
 else {
      try {
        AbstractSetBlock.setBlockManager=new SetBlockFast();
      }
 catch (      Throwable e) {
        AbstractSetBlock.setBlockManager=new SetBlockSlow();
      }
    }
    try {
      new SendChunk();
      PlotHelper.canSendChunk=true;
    }
 catch (    final Throwable e) {
      PlotHelper.canSendChunk=false;
    }
  }
{
    com.intellectualcrafters.plot.commands.plugin.setup(this);
  }
{
    boolean checkVersion=checkVersion(1,7,6);
    if (!checkVersion) {
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
      Settings.TITLES=false;
      FlagManager.removeFlag(FlagManager.getFlag("String_Node_Str"));
    }
 else {
      AbstractTitle.TITLE_CLASS=new DefaultTitle();
    }
    if (Settings.OFFLINE_MODE) {
      UUIDHandler.uuidWrapper=new OfflineUUIDWrapper();
      Settings.OFFLINE_MODE=true;
    }
 else     if (checkVersion) {
      UUIDHandler.uuidWrapper=new DefaultUUIDWrapper();
      Settings.OFFLINE_MODE=false;
    }
 else {
      UUIDHandler.uuidWrapper=new OfflineUUIDWrapper();
      Settings.OFFLINE_MODE=true;
    }
    if (Settings.OFFLINE_MODE) {
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
 else {
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
  }
  if (C.ENABLED.s().length() > 0) {
    Broadcast(C.ENABLED);
  }
}

Fixed version (ground truth):
/** 
 * On Load.
 */
@Override final public void onEnable(){
  PlotMain.main=this;
  setupLogger();
  C.setupTranslations();
  C.saveTranslations();
  if (getJavaVersion() < 1.7) {
    sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    Bukkit.getPluginManager().disablePlugin(this);
    return;
  }
 else   if (getJavaVersion() < 1.8) {
    sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
  }
  configs();
  defaultFlags();
  if (Settings.METRICS) {
    try {
      final Metrics metrics=new Metrics(this);
      metrics.start();
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
 catch (    final Exception e) {
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
  }
 else {
    sendConsoleSenderMessage("String_Node_Str");
  }
  if (Settings.KILL_ROAD_MOBS) {
    killAllEntities();
  }
  if (C.ENABLED.s().length() > 0) {
    sendConsoleSenderMessage(C.ENABLED);
  }
  final String[] tables;
  if (Settings.ENABLE_CLUSTERS) {
    MainCommand.subCommands.add(new Cluster());
    tables=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  }
 else {
    tables=new String[]{"String_Node_Str","String_Node_Str","String_Node_Str"};
  }
  if (Settings.DB.USE_MYSQL) {
    try {
      mySQL=new MySQL(this,Settings.DB.HOST_NAME,Settings.DB.PORT,Settings.DB.DATABASE,Settings.DB.USER,Settings.DB.PASSWORD);
      connection=mySQL.openConnection();
{
        if (DBFunc.dbManager == null) {
          DBFunc.dbManager=new SQLManager(connection,Settings.DB.PREFIX);
        }
        final DatabaseMetaData meta=connection.getMetaData();
        ResultSet res=meta.getTables(null,null,Settings.DB.PREFIX + "String_Node_Str",null);
        if (!res.next()) {
          DBFunc.createTables("String_Node_Str",true);
        }
 else {
          for (          final String table : tables) {
            res=meta.getTables(null,null,Settings.DB.PREFIX + table,null);
            if (!res.next()) {
              DBFunc.createTables("String_Node_Str",false);
            }
          }
        }
      }
    }
 catch (    final Exception e) {
      Logger.add(LogLevel.DANGER,"String_Node_Str");
      sendConsoleSenderMessage("String_Node_Str");
      if ((config == null) || config.getBoolean("String_Node_Str")) {
        sendConsoleSenderMessage("String_Node_Str");
        e.printStackTrace();
        sendConsoleSenderMessage("String_Node_Str");
        sendConsoleSenderMessage("String_Node_Str");
      }
      Bukkit.getPluginManager().disablePlugin(this);
      return;
    }
    plots=DBFunc.getPlots();
    if (Settings.ENABLE_CLUSTERS) {
      ClusterManager.clusters=DBFunc.getClusters();
    }
  }
 else   if (Settings.DB.USE_MONGO) {
    sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
  }
 else   if (Settings.DB.USE_SQLITE) {
    try {
      connection=new SQLite(this,this.getDataFolder() + File.separator + Settings.DB.SQLITE_DB+ "String_Node_Str").openConnection();
{
        DBFunc.dbManager=new SQLManager(connection,Settings.DB.PREFIX);
        final DatabaseMetaData meta=connection.getMetaData();
        ResultSet res=meta.getTables(null,null,Settings.DB.PREFIX + "String_Node_Str",null);
        if (!res.next()) {
          DBFunc.createTables("String_Node_Str",true);
        }
 else {
          for (          final String table : tables) {
            res=meta.getTables(null,null,Settings.DB.PREFIX + table,null);
            if (!res.next()) {
              DBFunc.createTables("String_Node_Str",false);
            }
          }
        }
      }
    }
 catch (    final Exception e) {
      Logger.add(LogLevel.DANGER,"String_Node_Str");
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
      sendConsoleSenderMessage("String_Node_Str");
      e.printStackTrace();
      Bukkit.getPluginManager().disablePlugin(this);
      return;
    }
    plots=DBFunc.getPlots();
    if (Settings.ENABLE_CLUSTERS) {
      ClusterManager.clusters=DBFunc.getClusters();
    }
  }
 else {
    Logger.add(LogLevel.DANGER,"String_Node_Str");
    sendConsoleSenderMessage(C.PREFIX + "String_Node_Str");
    getServer().getPluginManager().disablePlugin(this);
    return;
  }
{
    final MainCommand command=new MainCommand();
    final PluginCommand plotCommand=getCommand("String_Node_Str");
    plotCommand.setExecutor(command);
    plotCommand.setAliases(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"));
    plotCommand.setTabCompleter(command);
  }
  getServer().getPluginManager().registerEvents(new PlayerEvents(),this);
  if (checkVersion(1,8,0)) {
    getServer().getPluginManager().registerEvents(new PlayerEvents_1_8(),this);
  }
  getServer().getPluginManager().registerEvents(this,this);
  getServer().getPluginManager().registerEvents(new InventoryListener(),this);
  PlotPlusListener.startRunnable(this);
  getServer().getPluginManager().registerEvents(new PlotPlusListener(),this);
  getServer().getPluginManager().registerEvents(new ForceFieldListener(),this);
  if (getServer().getPluginManager().getPlugin("String_Node_Str") != null) {
    barAPI=(BarAPI)getServer().getPluginManager().getPlugin("String_Node_Str");
  }
  if (getServer().getPluginManager().getPlugin("String_Node_Str") != null) {
    worldEdit=(WorldEditPlugin)getServer().getPluginManager().getPlugin("String_Node_Str");
    final String version=worldEdit.getDescription().getVersion();
    if ((version != null) && version.startsWith("String_Node_Str")) {
      PlotMain.sendConsoleSenderMessage("String_Node_Str");
      PlotMain.sendConsoleSenderMessage("String_Node_Str");
      PlotMain.sendConsoleSenderMessage("String_Node_Str");
    }
 else {
      getServer().getPluginManager().registerEvents(new WorldEditListener(),this);
      MainCommand.subCommands.add(new WE_Anywhere());
    }
  }
  if (Settings.AUTO_CLEAR) {
    ExpireManager.runTask();
  }
{
    if ((getServer().getPluginManager().getPlugin("String_Node_Str") != null) && getServer().getPluginManager().getPlugin("String_Node_Str").isEnabled()) {
      final RegisteredServiceProvider<Economy> economyProvider=getServer().getServicesManager().getRegistration(net.milkbowl.vault.economy.Economy.class);
      if (economyProvider != null) {
        economy=economyProvider.getProvider();
        MainCommand.subCommands.add(new Buy());
      }
    }
    useEconomy=(economy != null);
  }
{
    getServer().getScheduler().scheduleSyncRepeatingTask(this,new Lag(),100L,1L);
  }
{
    if (checkVersion(1,8,0)) {
      try {
        AbstractSetBlock.setBlockManager=new SetBlockSlow();
      }
 catch (      Throwable e) {
        e.printStackTrace();
        AbstractSetBlock.setBlockManager=new SetBlockSlow();
      }
    }
 else {
      try {
        AbstractSetBlock.setBlockManager=new SetBlockFast();
      }
 catch (      Throwable e) {
        AbstractSetBlock.setBlockManager=new SetBlockSlow();
      }
    }
    try {
      new SendChunk();
      PlotHelper.canSendChunk=true;
    }
 catch (    final Throwable e) {
      PlotHelper.canSendChunk=false;
    }
  }
{
    com.intellectualcrafters.plot.commands.plugin.setup(this);
  }
{
    boolean checkVersion=checkVersion(1,7,6);
    if (!checkVersion) {
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
      Settings.TITLES=false;
      FlagManager.removeFlag(FlagManager.getFlag("String_Node_Str"));
    }
 else {
      AbstractTitle.TITLE_CLASS=new DefaultTitle();
    }
    if (Settings.OFFLINE_MODE) {
      UUIDHandler.uuidWrapper=new OfflineUUIDWrapper();
      Settings.OFFLINE_MODE=true;
    }
 else     if (checkVersion) {
      UUIDHandler.uuidWrapper=new DefaultUUIDWrapper();
      Settings.OFFLINE_MODE=false;
    }
 else {
      UUIDHandler.uuidWrapper=new OfflineUUIDWrapper();
      Settings.OFFLINE_MODE=true;
    }
    if (Settings.OFFLINE_MODE) {
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
 else {
      sendConsoleSenderMessage(C.PREFIX.s() + "String_Node_Str");
    }
  }
  if (C.ENABLED.s().length() > 0) {
    Broadcast(C.ENABLED);
  }
}