Tags: Dabblecraft2DevTeam/MapFileCleanup
Tags
fix: NullPointerException when MapMeta.getMapView() returns null Some filled map items in item frames have hasMapView() return true but getMapView() returns null, causing a NPE when calling getId() on the null MapView. Added explicit null check and try/catch to skip maps that can't be resolved instead of crashing the command.
initial release: MapFileCleanup v1.0.0 Standalone Paper 1.21.x plugin that cleans up orphaned map_*.dat files. Designed for NavyCraft servers where ship radar/sonar/helm maps accumulate in world/data/ and are never deleted when ships sink. Features: - Scheduled cleanup every 30 minutes (configurable) - Scans loaded chunks for active maps in item frames - Deletes orphaned map files older than 24 hours (configurable) - Dry-run mode for safe preview - /mapcleanup command with dryrun, stats, reload subcommands - No NavyCraft dependency -- pure Paper API