Minecraft servers require Java to run. Download and install the latest version of Java Development Kit (JDK) from the official Oracle website or use OpenJDK.
Note: Make sure to install Java 17 or later for the latest Minecraft versions.
PaperMC is a high-performance fork of Spigot that provides better performance and more features. Visit the official PaperMC downloads page:
Download PaperMCSelect the latest Minecraft version and download the Paper jar file.
Create a new folder on your computer where you want to run the Minecraft server. For example:
Place the downloaded Paper jar file in this directory.
Create a batch file (Windows) or shell script (Mac/Linux) to easily start your server. Create a new text file called "start.bat" with the following content:
Adjust the -Xmx and -Xms values based on your available RAM. This example allocates 4GB.
Double-click your start.bat file to run the server. The first run will generate necessary files and create an eula.txt file.
Important: You'll need to edit the eula.txt file and change "eula=false" to "eula=true" to agree to the Minecraft EULA.
Edit the server.properties file to customize your server settings:
You can modify these and other settings to match your preferences.
If you want others to join your server over the internet, you'll need to set up port forwarding on your router:
Note: The exact steps vary by router model. Check your router's manual for specific instructions.
After configuration, start your server again using the start.bat file. Players can connect using your public IP address (for internet play) or "localhost" (for local play).
Tip: For a smoother experience, consider installing plugins for additional features like world protection, economy systems, and more.