Docs · Lightpaper 1.0.0

Running Paper with Lightpaper

Everything the egg does, in the order you'll meet it: installing, choosing a profile, memory, updates and the checks on every start.

Install

Lightpaper is a Pterodactyl egg: one JSON file your panel imports. It's built for Pterodactyl 1.11 or newer with Wings. Pelican can import Pterodactyl eggs too. You need to be a panel administrator.

  1. Download egg-lightpaper.json.
  2. In the admin area, open Nests. Pick the nest for Minecraft (or create one), then choose Import Egg and select the file.
  3. Create a server with the Lightpaper egg. Choose a profile and the Docker image for your Minecraft version (see Java versions).
  4. Start the server. On the first start Paper stops and asks you to accept the Minecraft EULA. Accept it in the panel's pop-up if you agree. Lightpaper never accepts it for you.

Your nodes need outgoing HTTPS to fill.papermc.io and fill-data.papermc.io for downloads, and Paper itself fetches the Minecraft server from Mojang on its first start. The installer runs in ghcr.io/pterodactyl/installers:alpine, and the server in the ghcr.io/pterodactyl/yolks Java images.

How much memory? Paper runs on 1 GB for a few friends. 2 GB is comfortable for most small servers. Under 1 GB the guard warns you, and the Feather profile helps.

Java versions

Each Minecraft version needs a minimum Java version. The installer reads it from PaperMC and prints it at the end of the install log, and the guard tells you on start-up if the server's Java is too old.

MinecraftDocker image
26.1 and newerJava 25 (the default)
1.20.5 to 1.21.xJava 21
1.18 to 1.20.4Java 17
1.17Java 16
1.16 and olderJava 8 or Java 11

Change it on the server's Startup page under Docker Image, then start again.

Variables

These appear on the server's Startup page. Server owners can change all of them.

VariableDefaultWhat it does
Minecraft Version
MINECRAFT_VERSION
latestThe version to install, like 26.3 or 1.21.11. latest picks the newest full release that has a stable Paper build. Takes effect on reinstall. A version Paper doesn't have stops the install with a clear message instead of installing something else.
Build Number
BUILD_NUMBER
latestlatest installs the newest stable build and lets updates keep it current. A number pins that exact build and turns automatic updates off.
Server Jar File
SERVER_JARFILE
server.jarThe file Paper is saved as and started from. A plain file name ending in .jar.
Lightpaper Profile
LP_PROFILE
balancedfeather, balanced or faithful. Applies to a new server, or on reinstall with Reset Configs on. See Profiles.
Reset Configs on Reinstall
LP_RESET_CONFIGS
offOn: the next reinstall writes the profile's settings again, after backing up your files. Off: a reinstall never changes your settings. See Switching profile.
Automatic Paper Updates
LP_AUTO_UPDATE
onOn: each start installs the newest stable Paper build for your Minecraft version, checksum verified. See Updates.
Smart Memory
LP_SMART_MEMORY
onOn: the Java heap is sized to the server's memory with room left for Java itself. Off: Java uses 80% of the memory. See Memory.
Velocity Secret
PAPER_VELOCITY_SECRET
emptyOnly for servers behind a Velocity proxy: the proxy's forwarding secret. See Proxies.

Startup command

The egg starts Java with the G1 garbage collector settings from PaperMC's recommended list (often called Aikar's flags), minus AlwaysPreTouch, so Java only claims memory as it needs it.

java -Xms128M -XX:MaxRAMPercentage=80.0 -XX:+UseG1GC -XX:+ParallelRefProcEnabled
  -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC
  -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M
  -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4
  -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90
  -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem
  -XX:MaxTenuringThreshold=1 $(bash .lightpaper/boot.sh)
  -Dterminal.jline=false -Dterminal.ansi=true -jar {{SERVER_JARFILE}} --nogui

$(bash .lightpaper/boot.sh) runs the boot script. It prints the banner and its checks to the console, and hands back only a few extra Java flags: the heap size and, on Java 25 or newer, -XX:+UseCompactObjectHeaders, which makes every object smaller. If the script is missing, the server still starts, with 80% of its memory as heap.

Profiles

A profile is a set of settings the installer writes when a server is new. Lightpaper only writes the settings it changes; Paper fills in everything else with its own defaults on the first start.

  • Feather: as light as possible, for 1 to 2 GB servers. Shorter distances, fewer mobs, armor stands don't tick, common junk items despawn after 15 seconds, and pathfinding doesn't refresh on every block change.
  • Balanced (default): lighter, with gameplay kept close to vanilla. Uses the Alternate Current redstone engine, which behaves like vanilla redstone in almost every build but costs much less.
  • Faithful: vanilla gameplay. Only the safety settings change.

All three turn on anti-xray (engine mode 1), the lag-machine save limits, the hidden plugin list and the other safety settings. Paper's own YAML settings are written for Minecraft 1.21 and newer. Older versions get server.properties, bukkit.yml and spigot.yml only.

Every setting, file by file

"default" means the profile leaves Paper's own value in place.

server.properties
SettingFeatherBalancedFaithfulPaper default
motdA Lightpaper serverA Lightpaper serverA Lightpaper serverA Minecraft Server
online-modetruetruetruetrue
enforce-secure-profiletruetruetruetrue
white-listtruetruetruetrue
enforce-whitelisttruetruetruefalse
enable-rconfalsefalsefalsefalse
enable-queryfalsefalsefalsefalse
accepts-transfersfalsefalsefalsefalse
max-players20202020
spawn-protection16161616
network-compression-threshold256256256256
view-distance681010
simulation-distance461010
pause-when-empty-seconds60120-1-1
bukkit.yml
SettingFeatherBalancedFaithfulPaper default
settings.query-pluginsfalsefalsefalsetrue
settings.connection-throttle4000400040004000
spawn-limits.monsters3550default70
spawn-limits.animals810default10
spawn-limits.water-animals35default5
spawn-limits.water-ambient510default20
spawn-limits.water-underground-creature35default5
spawn-limits.axolotls35default5
spawn-limits.ambient25default15
ticks-per.monster-spawns4defaultdefault1
ticks-per.water-spawns4defaultdefault1
ticks-per.water-ambient-spawns4020default1
ticks-per.water-underground-creature-spawns4defaultdefault1
ticks-per.axolotl-spawns4defaultdefault1
ticks-per.ambient-spawns4020default1
spigot.yml
SettingFeatherBalancedFaithfulPaper default
settings.save-user-cache-on-stop-onlytruetruetruefalse
commands.send-namespacedfalsefalsefalsetrue
world-settings.default.merge-radius.item3.52.5default0.5
world-settings.default.merge-radius.exp4.03.0default-1.0
world-settings.default.item-despawn-rate4000defaultdefault6000
world-settings.default.arrow-despawn-rate300600default1200
world-settings.default.entity-activation-range.animals1624default32
world-settings.default.entity-activation-range.monsters2428default32
world-settings.default.entity-activation-range.raiders4848default64
world-settings.default.entity-activation-range.misc812default16
world-settings.default.entity-activation-range.water812default16
world-settings.default.entity-activation-range.villagers1624default32
world-settings.default.entity-activation-range.flying-monsters3232default32
world-settings.default.entity-activation-range.tick-inactive-villagersfalsedefaultdefaulttrue
world-settings.default.entity-tracking-range.players6496default128
world-settings.default.entity-tracking-range.animals4864default96
world-settings.default.entity-tracking-range.monsters4864default96
world-settings.default.entity-tracking-range.misc3232default96
world-settings.default.entity-tracking-range.display6496default128
world-settings.default.entity-tracking-range.other3248default64
config/paper-world-defaults.yml
SettingFeatherBalancedFaithfulPaper default
anticheat.anti-xray.enabledtruetruetruefalse
anticheat.anti-xray.engine-mode1111
chunks.entity-per-chunk-save-limit.arrow161616-1
chunks.entity-per-chunk-save-limit.ender_pearl161616-1
chunks.entity-per-chunk-save-limit.experience_orb161616-1
chunks.entity-per-chunk-save-limit.fireball888-1
chunks.entity-per-chunk-save-limit.small_fireball888-1
chunks.entity-per-chunk-save-limit.snowball888-1
chunks.prevent-moving-into-unloaded-chunkstruetruedefaultfalse
collisions.max-entity-collisions24default8
entities.armor-stands.do-collision-entity-lookupsfalsefalsedefaulttrue
entities.armor-stands.tickfalsedefaultdefaulttrue
entities.spawning.creative-arrow-despawn-rate6060defaultdefault
entities.spawning.non-player-arrow-despawn-rate6060defaultdefault
entities.spawning.despawn-ranges.monster.hard7296defaultdefault (128)
entities.spawning.despawn-ranges.monster.soft2832defaultdefault (32)
entities.spawning.alt-item-despawn-rate.enabledtruedefaultdefaultfalse
entities.spawning.alt-item-despawn-rate.itemscobblestone 300, cobbled_deepslate 300, netherrack 300, dirt 300, gravel 300, sand 300, red_sand 300, andesite 300, diorite 300, granite 300, tuff 300defaultdefault—
environment.optimize-explosionstruetruedefaultfalse
environment.treasure-maps.find-already-discovered.loot-tablestruetruedefaultdefault
environment.treasure-maps.find-already-discovered.villager-tradetruetruedefaultfalse
fixes.fix-items-merging-through-wallstruetruedefaultfalse
hopper.ignore-occluding-blockstruedefaultdefaultfalse
misc.redstone-implementationALTERNATE_CURRENTALTERNATE_CURRENTdefaultVANILLA
misc.update-pathfinding-on-block-updatefalsedefaultdefaulttrue
tick-rates.grass-spread44default1
tick-rates.behavior.villager.validatenearbypoi6060default-1
tick-rates.sensor.villager.secondarypoisensor8080default40
config/paper-global.yml
SettingFeatherBalancedFaithfulPaper default
chunk-loading-basic.player-max-chunk-generate-rate40.0-1.0-1.0-1.0
misc.max-joins-per-tick3555
Nether and End paper-world.yml (all profiles)
SettingNetherEnd
anticheat.anti-xray.enabledtruefalse
anticheat.anti-xray.engine-mode1—
anticheat.anti-xray.max-block-height128—
anticheat.anti-xray.hidden-blocksancient_debris, nether_gold_ore, nether_quartz_ore—

The Nether and End settings are added on the first start after Paper has created those dimensions, and only while their paper-world.yml is still untouched. Paper treats a dimension folder that already exists as an existing world, so the installer can't create them in advance.

Memory

Java needs memory outside its heap too: loaded classes, threads, network buffers and the garbage collector itself. If the heap takes everything, the container runs out of memory and Docker kills the server, usually without any error from Minecraft.

Smart Memory reads the container's real limit and keeps 300 MB + 8% of it free for Java, at most 1.5 GB. The rest becomes the heap (-Xmx). On a default Wings node, the container gets a little more than the plan (15% extra up to 2 GB, 10% up to 4 GB, 5% above), so for common plans that works out to:

Server memoryContainer limitKept for JavaHeap
1 GB1177 MB394 MB783 MB
1.5 GB1766 MB441 MB1325 MB
2 GB2355 MB488 MB1867 MB
4 GB4505 MB660 MB3845 MB
8 GB8601 MB988 MB7613 MB

The banner shows the result, for example Memory 2 GB · heap 1.8 GB. With Smart Memory off, or when the server has no memory limit, Java uses 80% of the memory instead.

Updates

Paper publishes new builds often, mostly fixes. With Automatic Paper Updates on and Build Number set to latest, each start does this:

  • Asks PaperMC for the newest build of the Minecraft version you have installed. At most once every 30 minutes, so a crash loop doesn't hammer PaperMC.
  • Uses it only if it's a stable build and newer than yours.
  • Downloads it only from papermc.io over HTTPS, and checks it against PaperMC's SHA-256. A file that doesn't match is deleted and your current build starts.
  • If PaperMC can't be reached, your installed build starts as normal.

It never changes your Minecraft version. Worlds can't be moved back to an older version, so that step is always yours:

  1. Back up your world.
  2. On the Startup page, set Minecraft Version (or keep latest).
  3. Reinstall the server from its Settings page. Your worlds, plugins and settings stay.

To stay on one exact build, set Build Number to that number.

Boot guard

Before Paper starts, the boot script checks the server and prints what it finds under the banner. ✓ is fine, · is a note, ! deserves a look, ✗ needs fixing. It never stops the server from starting.

MessageWhat to do
✓ jar verifiedNothing. The jar matches the checksum Lightpaper recorded.
! server.jar isn't the file Lightpaper installed, so it won't be auto-updatedFine if you swapped it on purpose: Lightpaper never replaces a jar it didn't install. To go back to Paper, reinstall the server.
✗ server.jar is missingReinstall the server to download Paper again.
✗ online-mode is off: anyone can join with any name, even an op'sSet online-mode=true in server.properties, unless the server sits behind Velocity (see Proxies).
✗ Velocity is on but has no secretPaste the proxy's forwarding secret into the Velocity Secret variable.
! BungeeCord forwarding can be fakedOnly safe if nothing but the proxy can reach this server's port. Velocity is the safer choice.
✗ RCON is on with a short or empty passwordSet rcon.password to 12 or more characters, or enable-rcon=false.
· Query is on, so anyone can read the player listSet enable-query=false unless a server list needs it.
· Whitelist is onLet friends in with whitelist add <name> in the console, or set white-list=false for a public server.
✗ Paper 26.3 needs Java 25, but this server has Java 21Startup page, Docker Image, pick the version shown, then start again.
! Under 1 GB of memory: Paper will be tightGive the server more memory, or switch to the Feather profile.
· Profile is set to feather, but balanced is appliedYou changed the profile variable. Turn on Reset Configs and reinstall to apply it (see Switching profile).
▸ First start: accept the Minecraft EULA when the panel asksRead the EULA and accept it in the panel if you agree.
↻ Updated Paper build 240 → 241 (checksum verified)Nothing. A new stable build was installed.
! The Paper update didn't downloadNothing urgent. Your current build starts, and the next check tries again.
✗ The Paper download didn't match PaperMC's checksumThe file was deleted and your current build starts. If it keeps happening, the node's connection may be altering downloads.

Safety settings

Every profile sets these on a new server. Paper's own protections (its packet limiter, spam limits, book and item size limits, and the exploit fixes it ships with) stay on as Paper sets them.

  • online-mode=true and enforce-secure-profile=true: players must own their account, and chat is signed.
  • white-list=true with enforce-whitelist=true: only people you add can join, and removing someone kicks them at once. New Minecraft servers start with the whitelist on as well.
  • enable-rcon=false, enable-query=false and accepts-transfers=false: no remote console, no public player list, no transfers from other servers.
  • query-plugins: false in bukkit.yml: your plugin list isn't shared with anyone who asks.
  • send-namespaced: false in spigot.yml: tab completion doesn't list plugin:command duplicates. Typed commands still work.
  • Anti-xray, engine mode 1: ores players can't see yet are sent as stone, so x-ray clients find nothing. The Nether hides ancient debris and nether gold and quartz ore. The End has no ores, so it's off there.
  • entity-per-chunk-save-limit: one chunk saves at most 16 arrows, ender pearls and experience orbs and 8 fireballs and snowballs, so lag machines and chunk bans can't build up.

Proxies

Velocity (recommended)

  1. In Velocity's velocity.toml, set player-info-forwarding-mode = "modern".
  2. On this server, set online-mode=false in server.properties. Velocity checks accounts instead.
  3. In config/paper-global.yml, set proxies.velocity.enabled: true (keep online-mode: true under it).
  4. Copy the contents of Velocity's forwarding.secret file into the Velocity Secret variable. Paper reads it from there, so the secret never sits in your config files.
  5. Restart. The guard shows ✓ Velocity forwarding.
proxies:
  velocity:
    enabled: true
    online-mode: true
    secret: ''   # leave empty: the Velocity Secret variable fills it

BungeeCord

Set settings.bungeecord: true in spigot.yml and online-mode=false. BungeeCord forwarding has no secret, so anyone who can reach this server's port directly can pretend to be any player. Only use it when the port is closed to everything but the proxy.

Switching profile

A reinstall normally keeps every file you have. To move to another profile:

  1. On the Startup page, pick the new Lightpaper Profile.
  2. Turn on Reset Configs on Reinstall.
  3. Reinstall the server from its Settings page.
  4. Turn Reset Configs off again, so later reinstalls leave your files alone.

The reset backs up each file it replaces to .lightpaper/backups/<date-time>/ first. It rewrites the YAML files the new profile sets, and the Nether and End settings. In server.properties it only puts back the four performance settings: view-distance, simulation-distance, pause-when-empty-seconds and network-compression-threshold. Your MOTD, whitelist, online mode and RCON choices stay yours.

Files it adds

Lightpaper keeps its own files in a .lightpaper folder next to your server:

FileWhat it is
boot.shThe script that runs before Java on every start. A reinstall writes a fresh copy, so edits don't last.
stateWhat was installed: Minecraft version, Paper build and its checksum, Java minimum, profile, last update check.
dimensions/The Nether and End settings, waiting until Paper creates those worlds.
backups/Your old settings, saved whenever a reset replaced them.
README.txtA short note on all of the above.

Deleting the folder is safe. The server still starts, just without the banner, checks, updates and Smart Memory. A reinstall puts it back.

Troubleshooting

"The world defaults config file didn't have a version set, assuming latest"

Expected once, on the first start. Lightpaper writes only the settings it changes, and Paper adds its version number and all the other settings when it first reads the file.

The server stops straight away on its first start

Paper is waiting for the Minecraft EULA. Accept it in the panel's pop-up if you agree, or set eula=true in eula.txt yourself.

"Minecraft 26.1 and newer requires running the server with Java 25 or above"

Pick Java 25 under Startup, Docker Image. The Java table lists the rest.

Friends see "You are not whitelisted on this server!"

Type whitelist add <their name> in the console, or set white-list=false if anyone may join.

The install fails with "Couldn't reach PaperMC"

The node can't make outgoing HTTPS requests to fill.papermc.io. Check its firewall and DNS, then reinstall.

The install fails with "Paper has no Minecraft …"

That version doesn't exist on Paper. Pick one from PaperMC's list, or latest, and reinstall.

Plugins with timers stop when nobody is online

That's the pause when empty. Set pause-when-empty-seconds=-1 in server.properties to keep the world running.

Does Lightpaper send anything anywhere?

The egg only talks to PaperMC: to download Paper and to look for updates. Paper itself still does what it always does, like checking accounts with Mojang and its own update notice.

Changelog

1.0.0 · 4 November 2026

  • First release.
  • Feather, Balanced and Faithful profiles for server.properties, bukkit.yml, spigot.yml and Paper's YAML (Minecraft 1.21 and newer).
  • SHA-256 verified downloads from PaperMC, pinned builds, and stable updates on start within your Minecraft version.
  • Smart Memory, and compact object headers on Java 25.
  • Boot guard and the Lightpaper banner.
  • Nether and End anti-xray, including Paper 26's new world layout.
  • Velocity secret through a variable.