Directory Structure & CLI Flags
Filesystem layout in Apis (configs/, addons/, plugins/, users/, worlds/, cache/) and startup CLI flags.
Standard Paper mixes server configs, worlds, plugin JARs, and runtime files together in the root directory. Apis separates them into dedicated directories so the repo stays clean and configs are easy to track in Git.
- Directoryaddons
- Directoryupdate
- MyHubPlugin.jar
- Directorycache
- Directorynatives
- .paperclip-stamp
- Directoryconfigs
- apis.yml
- bukkit.yml
- commands.yml
- help.yml
- paper-global.yml
- paper-world-defaults.yml
- paper.yml
- permissions.yml
- server.properties
- spigot.yml
- Directorylibraries
- Directorylogs
- Directoryplugins
- DirectorybStats
- DirectoryMyHubPlugin
- Directoryspark
- Directoryusers
- banned-ips.json
- banned-players.json
- ops.json
- usercache.json
- whitelist.json
- Directoryversions
- Directoryworlds
- Directoryarena_01
- world.yml
- Directoryhub
- world.yml
- .gitignore
- apis-paperclip-<version>-release.jar
Executable plugin .jar files only.
The only directory Apis loads plugin JARs from. Extra JARs can also be passed via --add-plugin or --add-extra-plugin-jar.
Staged plugin updates directory (addons/update/).
If empty, Apis remembers this and skips re-scanning plugin archives on startup.
Example plugin JAR.
Plugin binaries live in addons/, while configs and databases still go into plugins/MyHubPlugin/.
Boot caches, extracted natives, and AOT files.
Persistent cache of extracted native libraries (.so / .dylib).
Size, mtime, and SHA-256 cache for Paperclip manifests.
Skips re-hashing ~100 MB of dependencies on restarts when files have not changed.
All server config files in one directory.
Central directory for server configuration. Easy to version-control in Git.
Main Apis config: kill-switches, world modes, network limits, and messages.
Single source of truth for FeatureRegistry and ApisConfigSync. See the full configs/apis.yml reference.
Bukkit config (moved from root into configs/).
settings.allow-end is controlled via dimensions.enabled in configs/apis.yml.
Bukkit command aliases.
Default /help topic configuration.
Global Paper settings (moved from config/ into configs/).
Default Paper world settings.
Legacy Paper config (if present).
Basic Bukkit permission nodes.
Core Minecraft server properties (port, MOTD, max-players, etc.).
Duplicate keys (allow-nether, spawn-monsters, spawn-animals, spawn-npcs) are stripped automatically in favor of configs/apis.yml.
Spigot config (moved from root into configs/).
advancements.* and players.disable-saving stay synced with configs/apis.yml.
Extracted Paperclip runtime libraries.
Server log files (latest.log and archives).
Plugin config folders and databases only.
Plugins create their working data directories here. JAR files left inside plugins/ are ignored.
bStats metrics config and data.
MyHubPlugin configs and databases.
Spark profiler data (when analytics.spark: true).
Player lists and UUID cache.
If these files already exist in root from an older server setup, Apis picks them up; otherwise it creates them in users/.
Banned IP addresses.
Banned players.
Server operators.
Local player name/UUID cache.
Server whitelist.
Extracted server JAR (versions/<version>/apis-<version>.jar).
Isolated container for all server worlds.
Replaces scattered world/, world_nether/, world_the_end/ folders in root.
Extra world auto-loaded in standalone mode.
Per-world spawn coordinates and game mode.
Default primary world (dimensions.fallback-world).
Spawn, force-spawn, and default-game-mode for hub.
Default Git ignore rules for keeping configs clean.
If .gitignore is missing in root, Apis writes one that ignores *.jar, libraries/, versions/, logs/, crash-reports/, debug/, session.lock, world*/, plugins/, and users/usercache.json while keeping configs/ and .gitignore tracked.
Executable Paperclip launcher JAR.
Main launcher binary. Unpacks dependencies into libraries/ and the core JAR into versions/ on first boot, then validates stamps via cache/.paperclip-stamp.
Directory Roles
Section titled “Directory Roles”configs/ (--configs-dir)
Section titled “configs/ (--configs-dir)”Single directory for all server config files:
apis.yml(can also be set via-Dapis.config=<path>)server.properties,bukkit.yml,spigot.yml,commands.yml,permissions.yml,help.ymlpaper.yml,paper-global.yml,paper-world-defaults.yml
addons/ (--addons-dir) and plugins/ (-P / --plugins)
Section titled “addons/ (--addons-dir) and plugins/ (-P / --plugins)”Apis splits executable JARs from plugin data:
addons/- only directory scanned for plugin.jarfiles. Deferred updates go inaddons/update/.plugins/- holds plugin configs and databases (plugins/<PluginName>/). JAR files left inplugins/are skipped.
users/
Section titled “users/”usercache.json, ops.json, whitelist.json, banned-players.json, and banned-ips.json live in users/. If any already exist in root from a previous Paper setup, Apis reads those automatically for compatibility.
cache/
Section titled “cache/”cache/natives/- persistent cache for unpacked native libraries (so/dylib) so they are not re-extracted on every boot.cache/.paperclip-stamp- dependency integrity stamp that skips redundant SHA-256 hashing at startup.
CLI Flags
Section titled “CLI Flags”| Flag | Default | Description |
|---|---|---|
--configs-dir <Path> |
configs |
Server config directory |
--worlds-dir <Path> |
worlds |
Worlds container directory |
--addons-dir <Path> |
addons |
Plugin .jar & update/ directory |
-P, --plugins <File> |
plugins |
Plugin configs & data directory |
-c, --config <File> |
configs/server.properties |
Path to server.properties |
-b, --bukkit-settings <File> |
configs/bukkit.yml |
Path to bukkit.yml |
-C, --commands-settings <File> |
configs/commands.yml |
Path to commands.yml |
-S, --spigot-settings <File> |
configs/spigot.yml |
Path to spigot.yml |
--paper, --paper-settings <File> |
configs/paper.yml |
Path to legacy paper.yml |
--add-plugin, --add-extra-plugin-jar |
- | Extra plugin JARs outside addons/ |
-Dapis.config=<Path> |
configs/apis.yml |
JVM property for a custom apis.yml path |