Program: 98273
Project: 98273
Buggy source:
public boolean onCommand(CommandSender sender,Command cmd,String label,String[] args){
  if (!(sender instanceof Player))   return false;
  Player player=(Player)sender;
  World world=player.getWorld();
  AutoRefMatch match=getMatch(world);
  args=new StrTokenizer(StringUtils.join(args,' '),StrMatcher.splitMatcher(),StrMatcher.quoteMatcher()).setTrimmerMatcher(StrMatcher.trimMatcher()).getTokenArray();
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName())) {
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0]) && match != null) {
      match.saveWorldConfiguration();
      return true;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0])) {
      if (match == null) {
        addMatch(match=new AutoRefMatch(world,false));
        match.saveWorldConfiguration();
        match.setCurrentState(eMatchStatus.NONE);
      }
 else       sender.sendMessage("String_Node_Str" + match.worldConfig.getString("String_Node_Str","String_Node_Str") + "String_Node_Str");
      return true;
    }
    if (args.length >= 2 && "String_Node_Str".equalsIgnoreCase(args[0]))     try {
      String mapName=args[1];
      World mw;
      Long checksum=null;
      if (args.length >= 3)       checksum=Long.valueOf(args[2],16);
      File existingWorld=new File(mapName);
      if (existingWorld.exists() && existingWorld.isDirectory() && new File(existingWorld,AutoReferee.CFG_FILENAME).exists())       mw=getServer().createWorld(WorldCreator.name(mapName));
 else       mw=createMatchWorld(mapName,checksum);
      if (mw == null)       getLogger().info("String_Node_Str" + mapName + "String_Node_Str");
 else {
        getLogger().info("String_Node_Str" + mapName + "String_Node_Str"+ player.getName());
        player.teleport(mw.getSpawnLocation());
      }
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 2 && args[0].toLowerCase().startsWith("String_Node_Str"))     try {
      String mapName=args[1];
      File mapFolder=AutoRefMatch.getMapFolder(mapName,null);
      if (null != mapFolder) {
        long checksum=AutoRefMatch.recursiveCRC32(mapFolder);
        File cfgFile=new File(mapFolder,CFG_FILENAME);
        if (!cfgFile.exists())         return true;
        mapName=YamlConfiguration.loadConfiguration(cfgFile).getString("String_Node_Str","String_Node_Str");
        getLogger().info(mapName + "String_Node_Str" + Long.toHexString(checksum)+ "String_Node_Str");
      }
 else       getLogger().info("String_Node_Str" + mapName);
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0]) && match != null)     try {
      world.save();
      match.saveWorldConfiguration();
      File mapLibrary=AutoRefMatch.getMapLibrary();
      if (!mapLibrary.exists())       return true;
      String folderName=player.getName() + "String_Node_Str" + Long.toHexString(new Date().getTime());
      File archiveFolder=new File(mapLibrary,folderName);
      if (!archiveFolder.exists())       archiveFolder.mkdir();
      match.archiveMapData(archiveFolder);
      long checksum=AutoRefMatch.recursiveCRC32(archiveFolder);
      getLogger().info(match.getMapName() + "String_Node_Str" + Long.toHexString(checksum)+ "String_Node_Str");
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0]) && match != null)     try {
      if (args.length >= 2 && "String_Node_Str".equalsIgnoreCase(args[1])) {
        match.logPlayerStats(args.length >= 3 ? args[2] : null);
      }
 else       return false;
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0]) && match != null)     try {
      if (args.length >= 2)       match.setCurrentState(eMatchStatus.valueOf(args[1].toUpperCase()));
      getLogger().info("String_Node_Str" + match.getCurrentState().name());
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0])) {
      if (args.length >= 2 && "String_Node_Str".equalsIgnoreCase(args[1])) {
        int wincondtool=ZoneListener.parseTool(getConfig().getString("String_Node_Str",null),Material.GOLD_SPADE.getId());
        ItemStack toolitem=new ItemStack(wincondtool);
        PlayerInventory inv=player.getInventory();
        inv.addItem(toolitem);
        sender.sendMessage("String_Node_Str" + toolitem.getType().name());
        sender.sendMessage("String_Node_Str");
        sender.sendMessage("String_Node_Str");
        return true;
      }
      if (args.length >= 2 && "String_Node_Str".equalsIgnoreCase(args[1])) {
        int mechtool=ZoneListener.parseTool(getConfig().getString("String_Node_Str",null),Material.GOLD_AXE.getId());
        ItemStack toolitem=new ItemStack(mechtool);
        PlayerInventory inv=player.getInventory();
        inv.addItem(toolitem);
        sender.sendMessage("String_Node_Str" + toolitem.getType().name());
        sender.sendMessage("String_Node_Str");
        return true;
      }
    }
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null) {
    Set<AutoRefTeam> lookupTeams=null;
    if (args.length > 1) {
      AutoRefTeam t=match.teamNameLookup(args[1]);
      if (t == null) {
        sender.sendMessage("String_Node_Str" + args[1]);
        return true;
      }
      lookupTeams=Sets.newHashSet();
      lookupTeams.add(t);
    }
 else     lookupTeams=match.getTeams();
    if (lookupTeams == null)     return false;
    for (    AutoRefTeam team : lookupTeams) {
      sender.sendMessage(team.getName() + "String_Node_Str");
      if (team.getRegions().size() > 0)       for (      CuboidRegion reg : team.getRegions()) {
        Vector3 mn=reg.getMinimumPoint(), mx=reg.getMaximumPoint();
        sender.sendMessage("String_Node_Str" + mn.toCoords() + "String_Node_Str"+ mx.toCoords()+ "String_Node_Str");
      }
 else       sender.sendMessage("String_Node_Str");
    }
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null) {
    WorldEditPlugin worldEdit=getWorldEdit();
    if (worldEdit == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    if (args.length == 0) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    AutoRefTeam t, START=new AutoRefTeam();
    String tname=args[0];
    t="String_Node_Str".equals(tname) ? START : match.teamNameLookup(tname);
    if (t == null) {
      sender.sendMessage("String_Node_Str" + tname);
      sender.sendMessage("String_Node_Str" + match.getTeamList());
      return true;
    }
    Selection sel=worldEdit.getSelection(player);
    if ((sel instanceof CuboidSelection)) {
      CuboidSelection csel=(CuboidSelection)sel;
      CuboidRegion reg=new CuboidRegion(new Vector3(csel.getNativeMinimumPoint()),new Vector3(csel.getNativeMaximumPoint()));
      if (t == START) {
        match.setStartRegion(reg);
        sender.sendMessage("String_Node_Str" + "String_Node_Str");
      }
 else {
        t.getRegions().add(reg);
        sender.sendMessage("String_Node_Str" + t.getName() + "String_Node_Str");
      }
    }
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null) {
    AutoRefPlayer apl=match.getPlayer(player);
    if (apl == null)     sender.sendMessage("String_Node_Str" + ChatColor.GRAY + "String_Node_Str");
 else     sender.sendMessage("String_Node_Str" + apl.getTeam().getName());
    for (    AutoRefTeam team : match.getSortedTeams())     sender.sendMessage(String.format("String_Node_Str",team.getName(),team.getPlayers().size(),team.getPlayerList()));
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null && !isAutoMode()) {
    AutoRefTeam team=args.length > 0 ? match.teamNameLookup(args[0]) : match.getArbitraryTeam();
    if (team == null) {
      if (args.length > 0) {
        sender.sendMessage("String_Node_Str" + args[0]);
        sender.sendMessage("String_Node_Str" + match.getTeamList());
      }
      return true;
    }
    Player target=args.length > 1 ? getServer().getPlayer(args[1]) : player;
    if (target == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    if (target != player && !player.hasPermission("String_Node_Str")) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    AutoRefTeam pteam=match.getPlayerTeam(target);
    if (team != pteam) {
      if (pteam != null)       pteam.leave(player);
      team.join(target);
    }
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null && !isAutoMode()) {
    Player target=args.length > 0 ? getServer().getPlayer(args[0]) : player;
    if (target == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    if (target != player && !player.hasPermission("String_Node_Str")) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    match.leaveTeam(target);
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null && match.getCurrentState().ordinal() < eMatchStatus.PLAYING.ordinal()) {
    match.prepareMatch();
    return true;
  }
  return false;
}

Fixed version (ground truth):
public boolean onCommand(CommandSender sender,Command cmd,String label,String[] args){
  if (!(sender instanceof Player))   return false;
  Player player=(Player)sender;
  World world=player.getWorld();
  AutoRefMatch match=getMatch(world);
  args=new StrTokenizer(StringUtils.join(args,' '),StrMatcher.splitMatcher(),StrMatcher.quoteMatcher()).setTrimmerMatcher(StrMatcher.trimMatcher()).getTokenArray();
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName())) {
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0]) && match != null) {
      match.saveWorldConfiguration();
      return true;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0])) {
      if (match == null) {
        addMatch(match=new AutoRefMatch(world,false));
        match.saveWorldConfiguration();
        match.setCurrentState(eMatchStatus.NONE);
      }
 else       sender.sendMessage("String_Node_Str" + match.worldConfig.getString("String_Node_Str","String_Node_Str") + "String_Node_Str");
      return true;
    }
    if (args.length >= 2 && "String_Node_Str".equalsIgnoreCase(args[0]))     try {
      String mapName=args[1];
      World mw;
      Long checksum=null;
      if (args.length >= 3)       checksum=Long.valueOf(args[2],16);
      File existingWorld=new File(mapName);
      if (existingWorld.exists() && existingWorld.isDirectory() && new File(existingWorld,AutoReferee.CFG_FILENAME).exists())       mw=getServer().createWorld(WorldCreator.name(mapName));
 else       mw=createMatchWorld(mapName,checksum);
      if (mw == null)       getLogger().info("String_Node_Str" + mapName + "String_Node_Str");
 else {
        getLogger().info("String_Node_Str" + mapName + "String_Node_Str"+ player.getName());
        player.teleport(mw.getSpawnLocation());
      }
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 2 && args[0].toLowerCase().startsWith("String_Node_Str"))     try {
      String mapName=args[1];
      File mapFolder=AutoRefMatch.getMapFolder(mapName,null);
      if (null != mapFolder) {
        long checksum=AutoRefMatch.recursiveCRC32(mapFolder);
        File cfgFile=new File(mapFolder,CFG_FILENAME);
        if (!cfgFile.exists())         return true;
        mapName=YamlConfiguration.loadConfiguration(cfgFile).getString("String_Node_Str","String_Node_Str");
        getLogger().info(mapName + "String_Node_Str" + Long.toHexString(checksum)+ "String_Node_Str");
      }
 else       getLogger().info("String_Node_Str" + mapName);
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0]) && match != null)     try {
      world.save();
      match.saveWorldConfiguration();
      File mapLibrary=AutoRefMatch.getMapLibrary();
      if (!mapLibrary.exists())       return true;
      String folderName=player.getName() + "String_Node_Str" + Long.toHexString(new Date().getTime());
      File archiveFolder=new File(mapLibrary,folderName);
      if (!archiveFolder.exists())       archiveFolder.mkdir();
      match.archiveMapData(archiveFolder);
      long checksum=AutoRefMatch.recursiveCRC32(archiveFolder);
      getLogger().info(match.getMapName() + "String_Node_Str" + Long.toHexString(checksum)+ "String_Node_Str");
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0]) && match != null)     try {
      if (args.length >= 2 && "String_Node_Str".equalsIgnoreCase(args[1])) {
        match.logPlayerStats(args.length >= 3 ? args[2] : null);
      }
 else       return false;
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0]) && match != null)     try {
      if (args.length >= 2)       match.setCurrentState(eMatchStatus.valueOf(args[1].toUpperCase()));
      getLogger().info("String_Node_Str" + match.getCurrentState().name());
      return true;
    }
 catch (    Exception e) {
      return false;
    }
    if (args.length >= 1 && "String_Node_Str".equalsIgnoreCase(args[0])) {
      if (args.length >= 2 && "String_Node_Str".equalsIgnoreCase(args[1])) {
        int wincondtool=ZoneListener.parseTool(getConfig().getString("String_Node_Str",null),Material.GOLD_SPADE.getId());
        ItemStack toolitem=new ItemStack(wincondtool);
        PlayerInventory inv=player.getInventory();
        inv.addItem(toolitem);
        sender.sendMessage("String_Node_Str" + toolitem.getType().name());
        sender.sendMessage("String_Node_Str");
        sender.sendMessage("String_Node_Str");
        return true;
      }
      if (args.length >= 2 && "String_Node_Str".equalsIgnoreCase(args[1])) {
        int mechtool=ZoneListener.parseTool(getConfig().getString("String_Node_Str",null),Material.GOLD_AXE.getId());
        ItemStack toolitem=new ItemStack(mechtool);
        PlayerInventory inv=player.getInventory();
        inv.addItem(toolitem);
        sender.sendMessage("String_Node_Str" + toolitem.getType().name());
        sender.sendMessage("String_Node_Str");
        return true;
      }
    }
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null) {
    Set<AutoRefTeam> lookupTeams=null;
    if (args.length > 1) {
      AutoRefTeam t=match.teamNameLookup(args[1]);
      if (t == null) {
        sender.sendMessage("String_Node_Str" + args[1]);
        return true;
      }
      lookupTeams=Sets.newHashSet();
      lookupTeams.add(t);
    }
 else     lookupTeams=match.getTeams();
    if (lookupTeams == null)     return false;
    for (    AutoRefTeam team : lookupTeams) {
      sender.sendMessage(team.getName() + "String_Node_Str");
      if (team.getRegions().size() > 0)       for (      CuboidRegion reg : team.getRegions()) {
        Vector3 mn=reg.getMinimumPoint(), mx=reg.getMaximumPoint();
        sender.sendMessage("String_Node_Str" + mn.toCoords() + "String_Node_Str"+ mx.toCoords()+ "String_Node_Str");
      }
 else       sender.sendMessage("String_Node_Str");
    }
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null) {
    WorldEditPlugin worldEdit=getWorldEdit();
    if (worldEdit == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    if (args.length == 0) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    AutoRefTeam t, START=new AutoRefTeam();
    String tname=args[0];
    t="String_Node_Str".equals(tname) ? START : match.teamNameLookup(tname);
    if (t == null) {
      sender.sendMessage("String_Node_Str" + tname);
      sender.sendMessage("String_Node_Str" + match.getTeamList());
      return true;
    }
    Selection sel=worldEdit.getSelection(player);
    if ((sel instanceof CuboidSelection)) {
      CuboidSelection csel=(CuboidSelection)sel;
      CuboidRegion reg=new CuboidRegion(new Vector3(csel.getNativeMinimumPoint()),new Vector3(csel.getNativeMaximumPoint()));
      if (t == START) {
        match.setStartRegion(reg);
        sender.sendMessage("String_Node_Str" + "String_Node_Str");
      }
 else {
        t.getRegions().add(reg);
        sender.sendMessage("String_Node_Str" + t.getName() + "String_Node_Str");
      }
    }
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null) {
    sender.sendMessage("String_Node_Str" + ChatColor.GRAY + match.getMapName()+ ChatColor.ITALIC+ "String_Node_Str"+ match.getMapAuthors());
    AutoRefPlayer apl=match.getPlayer(player);
    if (apl == null)     sender.sendMessage("String_Node_Str" + ChatColor.GRAY + "String_Node_Str");
 else     sender.sendMessage("String_Node_Str" + apl.getTeam().getName());
    for (    AutoRefTeam team : match.getSortedTeams())     sender.sendMessage(String.format("String_Node_Str",team.getName(),team.getPlayers().size(),team.getPlayerList()));
    long timestamp=(match.getWorld().getFullTime() - match.getStartTicks()) / 20L;
    sender.sendMessage("String_Node_Str" + ChatColor.GRAY + match.getCurrentState().name());
    if (match.getCurrentState() == eMatchStatus.PLAYING)     sender.sendMessage(String.format(ChatColor.GRAY + "String_Node_Str",timestamp / 3600L,(timestamp / 60L) % 60L,timestamp % 60L));
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null && !isAutoMode()) {
    AutoRefTeam team=args.length > 0 ? match.teamNameLookup(args[0]) : match.getArbitraryTeam();
    if (team == null) {
      if (args.length > 0) {
        sender.sendMessage("String_Node_Str" + args[0]);
        sender.sendMessage("String_Node_Str" + match.getTeamList());
      }
      return true;
    }
    Player target=args.length > 1 ? getServer().getPlayer(args[1]) : player;
    if (target == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    if (target != player && !player.hasPermission("String_Node_Str")) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    AutoRefTeam pteam=match.getPlayerTeam(target);
    if (team != pteam) {
      if (pteam != null)       pteam.leave(player);
      team.join(target);
    }
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null && !isAutoMode()) {
    Player target=args.length > 0 ? getServer().getPlayer(args[0]) : player;
    if (target == null) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    if (target != player && !player.hasPermission("String_Node_Str")) {
      sender.sendMessage("String_Node_Str");
      return true;
    }
    match.leaveTeam(target);
    return true;
  }
  if ("String_Node_Str".equalsIgnoreCase(cmd.getName()) && match != null && match.getCurrentState().ordinal() < eMatchStatus.PLAYING.ordinal()) {
    match.prepareMatch();
    return true;
  }
  return false;
}