Back to Templates
Minecraft - Java Edition
Minecraft - Java Edition
GameCP OfficialSandbox
Verified

Minecraft - Java Edition

Dedicated Server Template

Minecraft Java Edition dedicated server. The official Mojang server software with automatic Java version detection, JAR management, and mod support. Runs in Docker for isolated resource management.

v12
2/25/2026

Minecraft - Java Edition Game Server Hosting

Deploy and manage your own Minecraft - Java Edition dedicated server with GameCP's free game server control panel. This template provides a production-ready server configuration with one-click installation, automatic updates via SteamCMD, and full environment variable management. Whether you're hosting for a small group of friends or running a large community server, GameCP makes Minecraft - Java Edition server administration simple and reliable.

Free Control PanelOne-Click DeployAuto UpdatesDocker Containerized
Full Hosting Guide

Ready to host Minecraft - Java Edition?

Read our complete step-by-step guide covering installation, configuration, performance tuning, and getting your server online in minutes.

Resource Requirements

CPU Cores
2
Memory
2.0 GB(max 8 GB)
Storage
5 GB

+50 MiB per player

Recommended Players

20
Recommended
Min: 1Max: 200

Performance Tiers

Economy

Small server, 1-10 players

RAM2 GB
CPU Shares1024
Recommended

Standard

Community server, 10-40 players

RAM4 GB
CPU Shares2048

Pro

Large server, 40-200 players

RAM8 GB
CPU Shares4096

Startup Command

CommandDirect command execution

Default

Standard Minecraft Java server startup

Default

Aikar's Flags (Optimized)

Optimized JVM flags recommended by Aikar for Minecraft servers. Best for servers with 10+ players.

ZGC Low Latency

Generational ZGC for ultra-low pause times. Best for competitive or latency-sensitive servers. Requires Java 21+.

Environment Variables

SERVER_NAME

Required

Server Name

Server name displayed in the server browser

Default
(empty)

MAX_PLAYERS

RequiredRead Only

Max Players

Maximum number of concurrent players

Default
20

MOTD

Read Only

Message of the Day

Message of the Day shown in the server browser. Defaults to the server name.

Default
${SERVER_NAME}

GAMEMODE

Game Mode

Default game mode for new players

Default
survival

DIFFICULTY

Difficulty

Server difficulty level

Default
easy

LEVEL_NAME

World Name

Name of the world/level folder

Default
world

PVP

Enable PvP

Allow players to fight each other

Default
true

SPAWN_MONSTERS

Spawn Monsters

Allow monsters to spawn naturally

Default
true

WHITE_LIST

Whitelist

Only allow whitelisted players to join

Default
false

ALLOW_FLIGHT

Allow Flight

Allow players to fly in survival mode. Enable this if using mods or Creative mode to prevent kick for "flying".

Default
false

SPAWN_PROTECTION

Spawn Protection

Radius of blocks around spawn that only ops can break. Set to 0 to let everyone build at spawn.

Default
16

MINECRAFT_VERSION

Read Only

Install Version

Version to use when installing or reinstalling the server. Use 'latest' for the newest release, or specify a version like '1.21.11'. Admin only.

Default
latest

HARDCORE

Hardcore Mode

Players are banned when they die

Default
false

FORCE_GAMEMODE

Force Game Mode

Force players to the default game mode

Default
false

ALLOW_NETHER

Allow Nether

Allow players to travel to the Nether

Default
true

LEVEL_SEED

World Seed

Seed for world generation. Leave empty for a random seed. Set this before the first start to control your world layout.

Default
(empty)

LEVEL_TYPE

World Type

Type of world to generate

Default
minecraft:normal

GENERATE_STRUCTURES

Generate Structures

Generate villages, dungeons, etc.

Default
true

ONLINE_MODE

Online Mode

Verify players with Mojang servers (disable for cracked servers)

Default
true

ENFORCE_WHITELIST

Enforce Whitelist

Automatically remove non-whitelisted players

Default
false

ENFORCE_SECURE_PROFILE

Enforce Secure Profile

Require players to have a valid profile

Default
true

ENABLE_RCON

Enable RCON

Enable remote console access

Default
false

RCON_PASSWORD

RCON Password

Password for RCON access

Default
(empty)

ENABLE_QUERY

Enable Query

Enable server query protocol

Default
true

ENABLE_STATUS

Enable Status

Show server in server list

Default
true

ENABLE_COMMAND_BLOCK

Enable Command Blocks

Allow command blocks to be used

Default
false

VIEW_DISTANCE

View Distance

How far players can see in chunks. 10 is the sweet spot for most servers. Lower to 6-8 for better performance on limited hardware.

Default
10

SIMULATION_DISTANCE

Simulation Distance

Maximum chunk simulation distance (3-32)

Default
10

MAX_TICK_TIME

Max Tick Time

Maximum time a single tick can take (milliseconds)

Default
60000

NETWORK_COMPRESSION_THRESHOLD

Network Compression

Compress packets larger than this size (bytes)

Default
256

JAVA_XMX

RequiredRead Only

Max Memory (Xmx)

Maximum memory allocation for the Java process (e.g., 2G, 4G, 8G)

Default
2G

JAVA_XMS

RequiredRead Only

Initial Memory (Xms)

Initial memory allocation for Java (e.g., 1G, 2G)

Default
1G

Lifecycle Scripts

Installation Script

Downloads the Minecraft server JAR file and accepts the EULA.

before installghcr.io/ptero-eggs/installers:debian

Cleanup Old Logs Before Start

Cleans up old log files before starting the server

before start
Linux
Windows

Configuration Files

Server Properties

Main Minecraft server configuration file. Uses Rules Mode to update key=value pairs in the server-generated server.properties file.

//server.propertiesproperties
27 fields

Container Configuration

Docker Image

eclipse-temurin:21-jre-alpine

Technical Profile

Template ID

minecraft-java

Author

GameCP Team

Last Updated

February 25, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

1

Source

gamecp