Prerequisites
Before starting, make sure you have Java 21 installed on your system. You can verify this by running
java -version in your terminal.Quick Setup
Download Paper
Download the latest Paper build from papermc.io/downloads/paper.Choose your desired Minecraft version and download the Paperclip jar file.
Create and configure your server directory
Create a new directory for your server and place the Paper jar inside:
Run the initial setup
Start the server to generate configuration files:The server will create files and stop automatically. This is expected behavior.
Create a Startup Script
Instead of typing the Java command every time, create a startup script:Recommended JVM Flags
For better performance, use these optimized JVM flags:start.sh
Adjust the
-Xms and -Xmx values based on your available RAM. These should typically be set to the same value to prevent heap resizing.Directory Structure
After running Paper, your server directory will look like this:Connecting to Your Server
Local Connection
If you’re testing locally, connect using:Remote Connection
For others to connect, they’ll need:- Your public IP address
- The server port (default: 25565)
Basic Server Management
Console Commands
Once your server is running, you can use these commands in the console:stop- Safely stop the serverrestart- Restart the server (requires a startup script)whitelist add <player>- Add a player to the whitelistop <player>- Give a player operator permissionssay <message>- Broadcast a message to all playerslist- Show online players
Making Yourself an Operator
To give yourself admin permissions:Basic Configuration
Editserver.properties to configure:
server.properties
Installing Plugins
Paper is compatible with Bukkit, Spigot, and Paper plugins:Next Steps
Now that your server is running:- Explore Configuration to customize your server
- Visit Hangar to find plugins
- Read the full documentation at docs.papermc.io
- Join the Paper Discord for support
Troubleshooting
Server won’t start
- Verify Java 21 is installed:
java -version - Check that
eula.txtis set totrue - Ensure port 25565 isn’t already in use
- Check the
logs/latest.logfile for errors
Out of memory errors
Increase the-Xmx value in your startup command:
Players can’t connect
- Verify the server is running (check console)
- Check firewall settings
- Verify port forwarding is configured correctly
- Ensure
online-modeis set correctly inserver.properties