Minecraft Server VPS - Getting Started Guide
Your Minecraft VPS based on Ubuntu 24.04 comes with a fully configured Paper MC server, optimized JVM settings (Aikar's Flags), automatic world backups and firewall. The server starts automatically - just connect and play.
Software Included
| Component | Details |
|---|---|
| Ubuntu | 24.04 LTS |
| Paper MC | Latest stable (Minecraft Java Edition) |
| Java | OpenJDK 21 |
| JVM Optimization | Aikar's Flags (G1GC tuned for Minecraft) |
| Firewall | UFW (SSH + Minecraft ports only) |
| Fail2Ban | SSH brute-force protection |
| Backups | Automatic every 6 hours, 7-day retention |
Step 1 - Connect to Your Server
Your Minecraft server is running on port 25565 (default). Open Minecraft Java Edition, click Multiplayer → Add Server, and enter your server IP:
your.server.ip
No port needed - Minecraft uses 25565 by default.
Step 2 - Server Administration via SSH
Connect to your server via SSH for administration:
ssh root@your.server.ip
Useful commands:
# Check server status
systemctl status minecraft
# Stop the server
systemctl stop minecraft
# Start the server
systemctl start minecraft
# Restart the server
systemctl restart minecraft
# View live server logs
journalctl -u minecraft -f
Server Configuration
Server Properties
The main configuration file is located at:
/opt/minecraft/server.properties
After editing, restart the server for changes to take effect:
systemctl restart minecraft
Common settings you may want to change:
| Setting | Description |
|---|---|
motd | Server name shown in the server list |
max-players | Maximum number of players (default: 20) |
gamemode | survival, creative, adventure |
difficulty | peaceful, easy, normal, hard |
white-list | Enable whitelist (true/false) |
view-distance | Chunk render distance (default: 8, lower = better performance) |
pvp | Player vs player combat (true/false) |
Installing Plugins
Paper MC supports Bukkit and Spigot plugins. To install a plugin:
# Copy plugin JAR to the plugins directory
cp my-plugin.jar /opt/minecraft/plugins/
# Restart the server
systemctl restart minecraft
Download plugins from trusted sources:
- Hangar (official Paper plugin repository)
- Modrinth
- SpigotMC Resources
Whitelist Management
If you enabled whitelist, only approved players can join. Manage the whitelist via SSH:
# Edit whitelist file
nano /opt/minecraft/whitelist.json
# Or add players by editing server.properties:
# white-list=true
# Then restart and use the whitelist.json file
Backups
Automatic Backups
Your world is automatically backed up every 6 hours. Backups are stored in /opt/minecraft/backups/ and kept for 7 days.
# List backups
ls -lh /opt/minecraft/backups/
# Manual backup
sudo -u minecraft /opt/minecraft/backup.sh
# Restore from backup (stop server first!)
systemctl stop minecraft
cd /opt/minecraft
rm -rf world
tar -xzf backups/world-2026-03-04_12-00.tar.gz
systemctl start minecraft
Performance
JVM Memory
The server automatically allocates memory based on your VPS RAM (total RAM minus 1 GB for the OS). No manual tuning needed.
| VPS RAM | Server Heap | Recommended Players |
|---|---|---|
| 2 GB | 1 GB | 1-5 |
| 4 GB | 3 GB | 5-15 |
| 8 GB | 6 GB* | 15-30 |
| 16 GB | 12 GB* | 30+ |
* For 8+ GB VPS, 2 GB is reserved for the OS instead of 1 GB.
Performance Tips
- Lower
view-distanceandsimulation-distancein server.properties if you experience lag - Use the built-in Spark profiler: type
/spark tpsin-game to check server performance - Limit entity counts with Paper's configuration in
/opt/minecraft/config/paper-world-defaults.yml - Pre-generate chunks with a plugin like Chunky to avoid lag spikes when players explore
Updating Paper MC
To update Paper MC to the latest version:
# Stop the server
systemctl stop minecraft
# Backup current JAR
cp /opt/minecraft/paper.jar /opt/minecraft/paper.jar.bak
# Download latest Paper MC
# Visit https://papermc.io/downloads/paper and download the latest JAR
# Upload it to your server via SCP or SFTP:
scp paper-1.XX.X-XXX.jar root@your.server.ip:/opt/minecraft/paper.jar
# Fix permissions
chown minecraft:minecraft /opt/minecraft/paper.jar
# Start the server
systemctl start minecraft
Troubleshooting
| Problem | Solution |
|---|---|
| Can't connect to server | Wait 1-3 minutes after first boot for world generation. Check: systemctl status minecraft |
| Server lag / TPS drops | Lower view-distance to 6 and simulation-distance to 4. Check TPS: /spark tps |
| Server crashes with OutOfMemoryError | Your VPS needs more RAM. Upgrade to a higher plan or reduce max-players and view-distance |
| "Failed to verify username" error | This means online-mode=true (default). Players must own a legitimate Minecraft account |
| Plugin not working | Check logs: journalctl -u minecraft | grep ERROR. Ensure the plugin is compatible with your Paper MC version |
| Forgot root password | Use VNC console in your client panel to reset it |
File Locations
| Path | Description |
|---|---|
/opt/minecraft/ | Server root directory |
/opt/minecraft/server.properties | Main configuration |
/opt/minecraft/plugins/ | Plugin directory |
/opt/minecraft/world/ | World data |
/opt/minecraft/backups/ | Automatic backups |
/opt/minecraft/logs/ | Server and backup logs |
/opt/minecraft/config/ | Paper MC configuration |