diff --git a/overviewer.py b/overviewer.py index 83bb6de..50c37e8 100755 --- a/overviewer.py +++ b/overviewer.py @@ -104,6 +104,8 @@ def main(): help="Runs the genPOI script") exegroup.add_option("--skip-scan", dest="skipscan", action="store_true", help="When running GenPOI, don't scan for entities") + exegroup.add_option("--skip-players", dest="skipplayers", action="store_true", + help="When running GenPOI, don't get player data") parser.add_option_group(exegroup) diff --git a/overviewer_core/aux_files/genPOI.py b/overviewer_core/aux_files/genPOI.py index 305ff82..fd5cb36 100755 --- a/overviewer_core/aux_files/genPOI.py +++ b/overviewer_core/aux_files/genPOI.py @@ -224,6 +224,7 @@ def main(): parser.add_option("-c", "--config", dest="config", action="store", help="Specify the config file to use.") parser.add_option("--quiet", dest="quiet", action="count", help="Reduce logging output") parser.add_option("--skip-scan", dest="skipscan", action="store_true", help="Skip scanning for entities when using GenPOI") + parser.add_option("--skip-players", dest="skipplayers", action="store_true", help="Skip getting player data when using GenPOI") options, args = parser.parse_args() if not options.config: @@ -288,7 +289,11 @@ def main(): if not options.skipscan: handleEntities(rset, os.path.join(destdir, rname), render, rname, config) - handlePlayers(rset, render, worldpath) + if options.skipplayers: + rset._pois['Players'] = [] + else: + handlePlayers(rset, render, worldpath) + handleManual(rset, render['manualpois']) logging.info("Done handling POIs")