GameCP Logo
FeaturesFeaturesPricingPricingSelf-HostedSelf-HostedGames & AppsGames & AppsIntegrationsIntegrationsDocsDocs
Claim Your Space
GameCP Logo
GameCP

The next-generation game server management platform. Built for performance, security, and ease of use.

Product

  • Features
  • Integrations
  • App Store
  • Pricing
  • Self-Hosted
  • Custom Development
  • Compare Panels

Resources

  • Documentation
  • API Reference
  • Referral Program
  • Support
  • System Status

Company

  • About
  • Contact

Β© 2026 GameCP. All rights reserved.

Privacy PolicyTerms of ServiceSelf-Hosted License
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.

v18
10/2/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.

Read Hosting GuideGet Started Free

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 Shares1536
Recommended

Standard

Medium server, 10-40 players

RAM4 GB
CPU Shares2560

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+.

Shenandoah GC

Low-latency GC that minimises pause times regardless of heap size. Java 17+ only.

No Optimisation

JVM defaults only β€” no GC tuning applied. Not recommended for production servers.

Custom Flags

Enter your own -XX: flags. Preset flags are disabled so you have full control.

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

CUSTOM_JVM_FLAGS

Custom JVM Flags

Your own -XX: JVM flags. Only used when the 'Custom Flags' startup preset is selected. Separate flags with spaces.

Default
(empty)

ADDITIONAL_JVM_FLAGS

Additional JVM Flags

Additional -XX: flags appended after the selected preset's flags. Works with any startup preset.

Default
(empty)

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

October 2, 2026

Status

Active

Configuration Metadata

Information about the origin and version of this game configuration.

Author

GameCP Team

Version

1

Source

gamecp

Hosting Guide

Host Your Own Minecraft - Java Edition Server

Step-by-step setup guide, performance tips, and everything you need to get your server running.

Read Full GuideGet Started Free
Template Info
Versionv18
CategorySandbox
SourceGameCP Official
Download Configuration

Export this template as a native GameCP Template

Quick Import

Copy this link to import in your GameCP panel

Pterodactyl Export

Export this template as a Pterodactyl egg for use in other panels

TCAdmin Export

Export this template as a TCAdmin game config XML

CDN Image Assets
minecraft-java Icon
IconSquare game icon
minecraft-java Banner
Banner16:9 card thumbnail
minecraft-java Hero
HeroUltra-wide background
minecraft-java Logo
LogoTransparent game logo

Tags

#minecraft#java#sandbox#survival#multiplayer#creative#modding

Ready to deploy?

Join GameCP today and deploy your favorite games and applications instantly.

Get Started Free