Paper Commands
The/paper command provides access to Paper-specific functionality. All subcommands require the bukkit.command.paper permission or specific subcommand permissions.
Syntax
Subcommands
version
version
Display Paper server version information.Permission:
bukkit.command.paper.versionOutput includes:- Paper version and build number
- Minecraft version
- Git commit information
- Previous version (if updated)
reload
reload
Reload Paper configuration files without restarting the server.Permission:
bukkit.command.paper.reloadReloads:config/paper-global.ymlconfig/paper-world-defaults.yml- Per-world configurations
heap
heap
Generate a heap dump for memory analysis.Permission:
bukkit.command.paper.heapCreates a .hprof file in the server directory for analysis with tools like:- Eclipse Memory Analyzer (MAT)
- VisualVM
- JProfiler
entity
entity
Display entity information and statistics for the current world.Permission:
bukkit.command.paper.entityShows:- Entity count by type
- Chunk locations with high entity counts
- Entity distribution analysis
- Entity farms causing lag
- Chunk errors with excessive entities
- Mob spawner issues
mobcaps
mobcaps
Display current mob caps and spawn information.Permission:
bukkit.command.paper.mobcapsShows:- Current mob counts per category
- Mob cap limits
- Per-player mob counts (if per-player spawning is enabled)
MONSTER, CREATURE, AMBIENT, WATER_CREATURE, WATER_AMBIENT, UNDERGROUND_WATER_CREATURE, AXOLOTLSdumpitem
dumpitem
Dump NBT data of the item you’re holding.Permission:
bukkit.command.paper.dumpitemOutputs complete NBT data of the held item to console and provides a paste link. Useful for:- Plugin development
- Custom item debugging
- Understanding item data structure
dumpplugins
dumpplugins
Dump information about all loaded plugins.Permission:
bukkit.command.paper.dumppluginsInformation includes:- Plugin name and version
- Authors
- Dependencies
- Load order
- Registered listeners
- Commands
- Permissions
dumplisteners
dumplisteners
Dump all registered event listeners.Permission:
bukkit.command.paper.dumplistenersShows which plugins are listening to which events, useful for:- Identifying performance bottlenecks
- Finding event conflicts
- Debugging event-related issues
syncloadinfo
syncloadinfo
Display information about synchronous chunk loads.Permission:
bukkit.command.paper.syncloadinfoShows:- Plugins causing synchronous chunk loads
- Stack traces of sync load locations
- Count of sync loads
Synchronous chunk loads cause server lag. This command helps identify problematic plugins.
Performance Monitoring
MSPT Command
Check server tick performance in milliseconds per tick.bukkit.command.mspt
Output:
- Current tick time
- 1-minute average
- 5-minute average
- 15-minute average
- 50ms = 20 TPS (target)
- < 40ms = Excellent performance
- 40-45ms = Good performance
- 45-50ms = Acceptable
- > 50ms = Server is lagging
Timings
Generate detailed performance reports (legacy, but still available).bukkit.command.timings
Vanilla Commands Enhanced
Paper enhances several vanilla commands:Version Command
Plugins Command
Chunk Management
While not Paper-specific, these vanilla commands are essential for administration:Force Load Chunks
minecraft.command.forceload
Keep chunks loaded even when no players are nearby.
World Management
Save Commands
minecraft.command.save
Options:
flush- Force write to disk immediately
When to use save-off
When to use save-off
Disable auto-saving during:
- Large WorldEdit operations
- Backup creation
- Mass chunk generation
Difficulty
minecraft.command.difficulty
Options: peaceful, easy, normal, hard
Changes take effect immediately without restart.
Permission Management
Op Commands
minecraft.command.op / minecraft.command.deop
Whitelist
minecraft.command.whitelist
Player Management
Kick and Ban
Teleportation
Debugging Commands
Debug
minecraft.command.debug
Creates .zip files with profiling data for Java VisualVM.
Perf
minecraft.command.perf
Java Flight Recorder profiling (requires JFR-enabled JVM).
Server Control
Stop Server
minecraft.command.stop
Gracefully shuts down the server:
- Kicks all players with optional reason
- Saves all worlds
- Unloads all chunks
- Stops the server
Restart (Script Required)
Paper doesn’t have a built-in/restart command. Use a server wrapper script:
Command Blocks
Paper provides additional configuration for command blocks (WorldConfiguration.java:561-566): config/paper-world-defaults.yml:- 1 - Bypass spawn protection
- 2 - Use command blocks, /gamemode, /give
- 3 - Operator commands (/ban, /kick, etc.)
- 4 - All commands including /stop
Permissions Reference
All Paper command permissions follow the format:Default Permissions
| Permission | Default | Description |
|---|---|---|
bukkit.command.paper | op | Base Paper command |
bukkit.command.paper.version | op | Version info |
bukkit.command.paper.reload | op | Reload configs |
bukkit.command.paper.heap | op | Create heap dump |
bukkit.command.paper.entity | op | Entity info |
bukkit.command.paper.mobcaps | op | Mob cap info |
bukkit.command.paper.dumpitem | op | Dump item NBT |
bukkit.command.mspt | op | View MSPT |
All permissions default to OP. Configure with a permissions plugin for non-op access.
Command Tips
Monitoring Performance
Monitoring Performance
Daily monitoring routine:
/mspt- Check current performance/paper mobcaps- Verify mob spawning is healthy/paper entity- Look for entity buildup- Review console for errors
/spark profiler --timeout 300- 5-minute profile/paper syncloadinfo- Check for sync chunk loads/paper entity- Find entity hotspots
Development & Debugging
Development & Debugging
Useful for plugin developers:
Maintenance Operations
Maintenance Operations
Before making backups:After updating Paper:
Related Documentation
Performance Tuning
Optimize based on command output
Paper Config
Global configuration reference
World Config
Per-world settings