Own minecraft server. How to create your own server

In this article I will tell you how to create your own Minecraft server that will work 24 hours a day, 7 days a week without lags and other troubles (except for griefers, of course, you will have to deal with them). Your server can handle 30 people or 100, depending on which server tariff plan you choose.

The hosting I chose was excellent hosting, at good prices with responsive technical support. I have been using their services for almost two years and have had no complaints yet. So, do everything according to the instructions, I will describe everything until the server starts, and you will choose which plugins to install yourself.

1. On the right, click on the “Account” button, then “Registration”. On the next page, enter all your details to get an account. After that, log into your account by entering your username and password. Registration is required to get an account, in which you can create your own Minecraft server.

2. In the top menu of the site, click on the “Services” button, in the drop-down list select “Order new services”.

3. Next, you need to choose one of the tariffs, depending on how many players you plan to keep on your server. In fact, the number of players on this hosting is unlimited, but the amount of RAM is limited. Approximately, for 8 players you need 256 MB of RAM, that is, if there are only 8 players on your server, then choose the cheapest tariff “Unmetered-256”, if there are about 30 players, then the tariff “Unmetered-1024”. The first tariff can support a larger number of players, but if you install a large number of mods, the game may begin to slow down, then you will need to switch to another tariff plan.

On the next page you need to enter the login that you will use in the Multicraft management system (server management). Also choose a payment period - 1 month or 1 year; if you pay for a year at once, you will get a good discount. Click the “Add to Cart” button, then the “Continue” button, select one of the payment methods, check the box and click the “Complete Order” button. On the next page you need to pay for the order via webmoney, after payment you will receive data on your server, it will be sent by email.

Use the data that came to your email. Try logging into the server, then look at the settings in the admin panel. Now you can install yours, I recommend not installing everything, but only what you need, do not load the server with unnecessary mods. You can also order a dedicated IP through your control panel if you need one.

This is a guide on how to create a Minecraft server on various platforms. By the end of the guide, you will know how to install a Minecraft server on Linux, Windows, and Mac operating systems.

Overall, Minecraft is a sandbox video game developed by Mojang. It consists of ranking the most popular games on streaming sites such as Twitch. The game can be played independently, but there is also a multiplayer mode with a large community of players.

To enjoy multiplayer mode, players will need to either set up their own Minecraft server or use a hosting provider. In this guide, we will focus on the solution to installing your own Minecraft server on Linux, Windows and Mac. If you have it on Hostinger, you can use these instructions and play with your friends and family!

How to create a Minecraft server on Linux

Let's see how to create a Minecraft server on the two best Linux distributions - Ubuntu and CentOS. Although the process is very similar on both systems, there are some differences in the process of installing the required packages.

Setting up a Minecraft server on Ubuntu

First of all, we will create a Minecraft server using a VPS running Ubuntu 16.04 OS. The whole process consists of three simple steps.

Before you begin, you need to connect to your server via SSH. To log into the server, open a terminal (or use if you're on Windows) and enter these commands:

Ssh username@ipaddress

As soon as you log in, you can begin installing your Minecraft server. Please note that installing a Minecraft server requires Java installed on your system. Java may already be installed on your system. To check this, run the following command:

Java -version

If you receive a message that says Java was not found on your system, you can continue to follow these instructions. Otherwise, you can end the current section and move on to step 2.

Run these commands in your terminal to download the latest software packages to install on your system, including Java:

Sudo apt-get update

Now you need to install Java. We are installing Java 7 for this tutorial:

Sudo apt-get install openjdk-7-jdk

If you need the latest version of Java, you can run this command instead of the previous one:

Sudo apt-get install default-jdk

Here we should also install screen, which will ensure that your server runs in the background even if the connection is lost. To do this, enter the following command:

Sudo apt-get install screen

You now have Java and Screen installed on your system.

Step 2 – Install Minecraft Server on Ubuntu

Let's now see how to create a Minecraft server on Ubuntu VPS. It's always best to keep your files and programs clean and organized. To avoid chaos, let's create a new directory in which all Minecraft files will be stored. This step is optional, although for clarity we highly recommend it. To make a new directory, run:

Mkdir minecraft

Once created, go inside the directory:

Sudo apt-get install wget

Now download and install your own Minecraft server:

Wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.11.2/minecraft_server.1.11.2.jar

At the time of writing, the latest available version is 1.11.2. You need to replace this number with the version that is most recent at the moment. You can check the version using the link.

Accept the Minecraft User License Agreement:

Echo "eula=true" > eula.txt

First, let's run screen so that we can start the server in the background:

Screen -S "Minecraft server 1"

We named the current session 'Minecraft server 1', but you can use any other name.

That's all - you have successfully installed your custom Minecraft server on Ubuntu.

Now you only need to start the installed server. To do this, run the following command in the terminal:

As you can see, Minecraft requires 1024MB or 1GB of RAM available to run the server. Since these are the minimum requirements, we recommend that you have more random access memory (RAM) available for better performance. To allocate more memory for the server, simply replace 1024 in -Xmx And -Xms parameters for 2048 (2GB) and so on. This is what you will see after running the command:

And now there you have it: your own Minecraft server in just a few minutes. The server is running in the background since we are using screen. To turn off screen, click CTRL + A, Then D. You can roll back the operation and open the screen window again by typing screen -r in the terminal. You can experiment with the server settings in the properties file:

Nano ~/minecraft/server.properties

Installing a Minecraft server on CentOS 7

Let's see how to create a Minecraft server on a VPS running CentOS 7. The process is not too different from Ubuntu.

Step 1 – Install Java and Screen

First, you need to install Java, since Minecraft is completely built on it. Next screen , since it is needed for the Minecraft server after logging out of the SSH session. Connect to your VPS server via SSH (Windows users can use the client for this) and run the installation of these two packages:

Yum install java screen -y

Step 2 – Install Minecraft Server on CentOS 7

To streamline the installation, let's create a new directory:

CD minecraft

Download Minecraft server packages:

Wget -O minecraft_server.jar https://s3.amazonaws.com/Minecraft.Download/versions/1.10.2/minecraft_server.1.10.2.jar

Run screen with the correct name:

Screen -S "Minecraft server"

Accept the EULA by changing the value from false to true in the eula.txt file:

Nano eula.txt

Step 3 – Starting the Minecraft Server

Now you can start the server using this command:

Java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

The result should be something like this:

Server Minecraft has been successfully launched, you can exit screen using the keyboard shortcut CTRL – A + D.

Server settings can be changed by editing this file:

Nano server.properties

How to create a Minecraft server on Windows

You can also install the Minecraft server on your Windows PC. We will try to cover everything you need for this in three steps.

Step 1 – Install the latest version of Java

Since Minecraft is based on Java, you need to install the latest version and make sure everything is running correctly. You can use the command line to check compliance. Run the following command:

Java -version

Then make sure that your version matches the latest Java version on the official website. Download and install if your current version is older or if you don't have Java at all.

Step 2 – Install Minecraft Server on Windows

Now you need to select the location where you want to install your Minecraft server. To properly organize the storage of all the necessary files, we recommend that you create a special directory. Once you create it, download the latest Minecraft server software installation from the official website.

Move the file .jar to the directory you created earlier and double-click on it.

Before you continue installing the Minecraft server, you must agree to the terms of the license agreement EULA. This can be done by editing the file eula.txt and changing the parameter eula=false on eula=true.

Step 3 – Starting the Minecraft Server

You can start the Minecraft server using the Windows command line. Use this to navigate to your Minecraft directory. For example:

Cd Desktop/MinecraftServer

Start the Minecraft server by running the command:

Java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Or you can double-click the left mouse button again on the file with the extension .jar and this will lead to the same result. You will need to allow access to the Minecraft server through the Windows firewall.

If you see a screen like this, it means your Minecraft server has started successfully:

How to create a Minecraft server on Mac

Last but not least, let's look at installing a Minecraft server on MacOS. Solving the problem in three steps.

Step 1 – Install Java and Screen

Java enabled default, if you are using the latest version of MacOS. You can double-check this by entering this command in your terminal:

Java -version

If you find that it is not available, you can download traditional versions of Java from Apple's website.

Step 2 – Install Minecraft Server on Mac

To keep everything neat and organized, the best choice is to create a directory for your Minecraft server. Once you have created it, download the Minecraft server setup from the official website.

Download it to the created directory. Then open a text editor and set the format to plain text: Format › Make Plain Text. Paste the following into the file:

#!/bin/bash cd "$(dirname "$0")" exec java -Xms1024M -Xmx1024M -jar minecraft_server.jar nogui

Save the file as startmc.command V in the same directory,where the Minecraft server installation files are located. To make it work, you need to change the access rights. You can assign them from the Terminal, which can be found in ApplicationsUtilities. Once the terminal opens, go to your Minecraft directory. For example:

cd Desktop/MinecraftServer

You can assign access rights with the following command:

Chmod a+x startmc.command

Step 3 – Starting the Minecraft Server

If all steps were completed correctly, you can start the Minecraft server by double clicking on the file startmc.command. After this, a new terminal window will appear.

You may notice warnings about several missing files or directories when you first run it. Don't worry about this, it's completely normal!

Finally

Congratulations! By completing this tutorial, you have learned how to create a Minecraft server on various platforms and operating systems.

This article introduces the reader to the features of a clean (without modifications) server. Minecraft current version. Unlike the client, it is distributed free of charge through the official website of the game. The information in this article has been updated to reflect version 1.12.2.

Preparing for work

For the server to work, you need to install the Java package on your PC. It can be downloaded from this page. But if the client Minecraft starts, this is an indicator that this package is already installed on the computer. (Minecraft can now be installed through an installer that downloads Java for itself. In this case, you still need to install Java.)

In order to download the server, you need to go to the download page of the official website. Click on the appropriate link and save the file in a separate directory, which will be the main one for your server. When creating a server on Linux or OS X, the main directory of the server is the working directory; use the command cd /path/to/server/ .

Creating and setting up a server

Introducing Server Settings

When the downloaded file is in the future server folder, run it and wait until the level generation process finishes. You will see that several new files and subfolders have appeared in your folder.

Let's look at the file server.properties. This file contains all the main server parameters. Open this file using any suitable text editor. You will see content something like this:

#Minecraft server properties #Thu Jul 07 16:45:52 MSK 2016 generator-settings= op-permission-level=4 allow-nether=true level-name=world enable-query=false allow-flight=false announce-player- achievements=true server-port=25565 max-world-size=29999984 level-type=DEFAULT enable-rcon=false force-gamemode=false level-seed= server-ip= network-compression-threshold=256 max-build-height =256 spawn-npcs=true white-list=false spawn-animals=true snooper-enabled=true hardcore=false resource-pack-sha1= online-mode=true resource-pack= pvp=true broadcast-console-to-ops =true difficulty=1 enable-command-block=false player-idle-timeout=0 gamemode=0 max-players=20 max-tick-time=60000 spawn-monsters=true view-distance=10 generate-structures=true motd =A Minecraft Server

Description of parameters

Parameter Values Default Description
allow-flight true/false true Allows the player to fly around the world of Minecraft. This option only applies to flights in Survival and only has an effect if there is a corresponding plugin (for example, Flight). Flights in Creative mode are not affected in any way.
allow-nether true/false true This parameter determines the possibility of transition to the Lower World. If disabled, all players who were in the Nether will be moved to the normal one. Does not affect the transition to the Edge.
announce-player-achievements true/false true This parameter determines whether the server should send chat messages about achievements.
difficulty Number (0-3) 0 Difficulty level: 0 - Peaceful 1 - Easy 2 - Normal 3 - Difficult
enable-command-block true/false false Allows the use of a command block. This option is not generated on first boot, but appears the first time you try to use a command block.
enable-query true/false false Allows you to activate the GameSpy4 protocol to listen to the server (obtain information about the server).
enable-rcon true/false false Allows you to use remote access to the server console.
force-gamemode true/false false If true, then when connecting to the server the player’s game mode will change to the standard one specified in gamemode.
gamemode Number (0-3) 0 Standard game mode, automatically installed for all players who log into the server for the first time. The mode of an individual player is changed with the /gamemode command. 0 - Survival 1 - Creativity 2 - Adventure 3 - Observation
generator-settings No Line This line specifies the template for generating a superflat world. See superplane for details.
generate-structures true/false true Whether to generate structures (treasuries, fortresses, villages...)
hardcore true/false false Enables Hardcore mode on the server. After death - transition to observer mode.
level-name Folder name world The name of the folder with map files that the server will use during the game. This folder is located in the same directory where the server is located. If it is not there, the server will automatically generate a new world and place its files in a folder with this name.
level-seed Any acceptable grain Input data (grain) for the level generator. If you want to create a random world, leave this field blank.
level-type DEFAULT / FLAT / LARGEBIOMES / AMPLIFIED DEFAULT Defines the world type.
max-build-height Multiple of 16 (64 - 256) 256 Specifies the maximum building height on your server. Above this level it will not be possible to break or place blocks. Terrain can be generated above this level, and blocks can also be destroyed using TNT and fire. In addition, buckets work above the border (error).
max-players Number (0-2147483647) 20 Specifies the maximum number of players allowed on the server.
motd Line no more than 60 characters A Minecraft Server Description of the server, displayed when connecting in the list of servers. Supports text formatting.
online-mode true/false true This setting allows you to enable/disable authentication of premium accounts of users who connect to this server. If false- the program will not check player accounts and players whose accounts do not have the “premium account” status will be able to log into the server. If the parameter value true, only users with a premium account will be able to access the server. If account verification is disabled, “pirates” and players who have faked their nicknames will be able to access this server, which is somewhat unsafe. An administrator who creates a server in this mode does not violate the terms of the user agreement, since this option was added to the list of configurable server parameters intentionally - by disabling the check, you can, for example, play on a local network without access to the Internet.
op-permission-level Number (1-4) 3 Allows you to change operator rights. 1 - Operators can break/place blocks within the protection radius of the spawn area. 2 - Operators can use the commands /clear , /difficulty , /effect , /gamemode , /gamerule , /give , / , and can modify command blocks. 3 - Operators can use the /ban , /deop , /kick , and / commands. 4 - Operators can use the /stop command.
player-idle-timeout Number 0 If not set to zero, players will be automatically disconnected from the server if they have not done anything for the specified time (in minutes).
pvp true/false Enables/disables players receiving damage from attacks of other players on the server. At true players will be able to “fight” among themselves, killing each other. If set to false, players will not be able to deal direct damage to each other.
query.port Number (1-65535) 25565 Port for obtaining information about the server. Appears automatically when enable-query=true .
rcon.password Line No Password for remote access to the server. Appears automatically when enable-rcon=true .
rcon.port Number (1-65535) 25575 Port for remote server control. Appears automatically when enable-rcon=true .
resource-pack File name No The location of the resources that the server will offer to download to the player upon connection. In this field you need to indicate direct link to a zip archive.
server-ip Any valid IP address No Specifies the server IP address that will be used by other players to connect to this server. It is recommended to leave this field blank, but if you want to give the server a special IP address, you can use this parameter to set it.
server-port Number (1-65535) 25565 This parameter determines the value of the port in the TCP and UDP protocols that the game server will use. Standard for Minecraft port - 25565. It is recommended not to change the value, because To enter a server using a standard port, the player will only need to type the IP or DNS address without specifying the port, and when using other ports, there is a possibility that this port will already be occupied by another network resource. If you still want to specify the port manually, choose larger numbers and avoid popular ports: 80 and 8080 (web server), 21 (ftp server), 22 (ssh server), 143 (imap), 6969 and 6881-6889 (bittorrent), etc. For example, port 23000 is suitable.
snooper-enabled true/false true Allows the server to send some statistics and data to developers.
spawn-animals true/false true Likewise spawn-monsters, but for friendly mobs (cows, pigs, sheep...).
spawn-monsters true/false true If the parameter value true, then, as in a single-player game, at night and in dark caves hostile mobs will appear on the map and will try to harm players on the server. If the value false, hostile mobs (e.g. skeletons, zombies) will not automatically spawn during the game, however they can be spawned using spawn eggs. All mobs on the map will remain.
spawn-npcs true/false true Allow NPCs to appear in villages.
spawn-protection Number (1-100) 16 The radius of protection of the spawn territory in blocks (only operators can change this territory). Radius 0 gives protection to a single block, 1 to a 3x3 zone, and so on. This option is not generated on first boot, but appears when the first player joins the server. After 1.4.2, spawn protection is automatically disabled if the server does not have any operators.
view-distance Number (3-15) 10 Adjusts the radius of updated chunks to be sent to the player. For reference: draw distance Far in versions before 1.7, displays an area within a radius of 10 chunks.
white-list true/false false Allows you to enable/disable the use of whitelist on the server. At true The server administrator will need to manually add player nicknames to the white list. If set to false, any player will be able to access this server, knowing its IP address and port. Server administrators have the ability to log into the server regardless of the white list.
max-world-size Number (1-29999984) 29999984 Sets the world boundary at the selected radius, starting from the zero coordinate. Setting a boundary that goes beyond the boundaries of the world will not do anything.

For example

  • If a radius of 1000 blocks is specified, then you will get a workspace of 2000 x 2000 blocks.
  • If a radius of 4000 blocks is specified, then you will get a workspace of 8000 x 8000 blocks.
network-compression-threshold Number 256 By default it allows packets that are n-1 bytes big to go normally, but a packet that n bytes or more will be compressed down. So, lower number means more compression but compressing small amounts of bytes might actually end up with a larger result than what went in. -1 - disable compression entirely 0 - compress everything

Note: The Ethernet spec requires that packets less than 64 bytes become padded to 64 bytes. Thus, setting a value lower than 64 may not be beneficial. It is also not recommended to exceed the MTU, typically 1500 bytes.

resource-pack-sha1 Line blank Optional SHA-1 digest of the resource pack, in lowercase hexadecimal. It"s recommended to specify this. This is not yet used to verify the integrity of the resource pack, but improves the effectiveness and reliability of caching.
use-native-transport true/false true Linux server performance improvements: optimized packet sending/receiving on Linux true- Enabled. Enable Linux packet sending/receiving optimization false- Disabled. Disable Linux packet sending/receiving optimization
max-tick-time Number (0 - (2^63 - 1)) 60000 The maximum number of milliseconds a single tick may take before the server watchdog stops the server with the message, A single server tick took 60.00 seconds (should be max 0.05); Considering it to be crashed, the server will forcibly shutdown. Once this criteria is met, it calls System.exit(1). -1 - disable watchdog entirely (this disable option was added in 14w32a)
broadcast-console-to-ops true/false true Send chat messages about using op commands such as give or gamemode. true- send false- do not send

The first line "#Minecraft server properties" is necessary for the server to determine that this is the actual server.properties file that it will use at the moment.

The second line "#Thu Jul 07 16:45:52 MSK 2016" describes the dates when this file was last modified by the server. It is important to remember that the server takes the date and time that are set by the operating system.

"#" <Первые три буквы дня недели на английском языке> <Первые три буквы месяца на английском языке> <Число> <Время ЧЧ:ММ:СС> <Часовой пояс> <Год>

Immediately before starting to play on the server, you can configure the above server parameters.

  • Field server-ip It is best to leave it empty - the game itself will determine and configure this parameter. But if you want to assign a special IP address to the server, you can change this setting.
  • Field gamemode indicates a game mode that will be automatically enabled for all players who log into the server. The game mode for a specific player can be changed during operation.
  • If you have enabled white-list, make yourself an operator or add yourself to the whitelist.
  • When filling out the field max-build-height If the number is not suitable, the server automatically selects the closest number possible to use.

Any change to the settings in this file requires a server restart. In addition, the server can sometimes write changes to this file, so it is better to reconfigure when the server is offline.

Setting up a connection to the server

It is worth noting that players from both the local network and the Internet can play on the server at the same time.

Connect to your own server

If you keep the server on the same computer you are going to play on, all you need to do to connect is enter the address 127.0.0.1 or localhost . This address uses a virtual network interface (loopback), which is always available, even if the computer does not have a network card.

If you cannot connect even through the loopback interface, this is a reason to check your antivirus and firewall settings. Add to exceptions Minecraft Server and port 25565.

Server on local network

The process of setting up a game server over a local network is much simpler than creating one accessible from the Internet, and is easier in terms of errors occurring when connecting to the server.

In addition, your address may be permanent, static, or change every time you reconnect to the provider, that is, be dynamic. The easiest way to determine the type of address is to reconnect the modem and compare external IP addresses. If after reconnecting the modem the IP address has changed, this means that you have a dynamic IP address. Dynamic addresses are more common than static ones, but when creating a game server, it is recommended to have a static IP address, since the dynamic address changes every time you reconnect to the ISP (and you will have to constantly communicate the new address to your players). However, a static address is not a necessary condition for the server to operate.

In addition, there are services (including free ones) that provide third-level domains, for example, dyn.com/dns/. Address updating is usually done using a special program that you will need to install on your computer, but some modems and routers can perform this function themselves (look in the router interface for Dynamic DNS). Many providers offer a static IP address as an additional service.

Connecting to the server

To connect to your server, players must enter your server IP address in the game client. external IP address or domain (website address) and click the connect to server button. The external IP address can be found out by the server owner and told to players who want to connect to his server. The following sites can help you find out your external IP address: SpeedTest.net, 2IP.ru, Smart-IP.net.

If players cannot connect to your server, see the section.

Server via VPN

If you are having problems with internal IP address, you can try Hamachi, P2PLauncher, EasyVPN, Garena or similar services. The most popular of them is Hamachi. The server creator and those connecting must download and install Hamachi. Further:

For the server:

  1. Create a room.
  2. leave server-ip empty.
  3. Start the server.
  4. Communicate your IP in Hamachi (next to the connect button) to those connecting.

For players:

  1. Enter the room with the server.
  2. Try to connect using the received IP.

The easiest to use is the P2PLauncher program, which connects computers through a peer-to-peer network. Just put it in the game folder and run it. On server:

  1. Enter a nickname (aka the future name of the server) and the name of the room, click “Start server”.
  2. Tell the name of the room and your nickname to those who want to join you.

On the client:

  1. Launch P2PLauncher. Enter your nickname and room name, click “Launch client”.
  2. For the server name, use the nickname of the player who created the server.

Opening ports

Opening, or port forwarding (Port Forwarding) allows clients connecting from the Internet to access a server that resides behind a router or modem. The problem with opening ports often occurs when creating a server on a local subnet. Your router or modem may be blocking the port that the game server is trying to use. For different models, this procedure occurs slightly differently.

There are 2 ways to open ports:

  • The website portforward.com presents a collection of special software that is designed to open ports on various modem models. Go to this site and find the model of your modem or router in the list. Go to your model's page and download from there a utility designed to open ports. Use it to open the port that your server uses (by default 25565 ).
  • Log into the web interface of your modem or router through a web browser. As a rule, to enter it, in the web address input line you need to enter 192.168.1.1 or 192.168.0.1 . Once you are in the web interface menu, find the item Port Forwarding or NAT. Once this menu opens, you will need to enter some parameters. Parameters that may be required: Start Port - 25565, End Port - 25565, IP adress - local IP address of the computer on which you are creating the server (for example, 192.168.1.2), Protocol - first enter TCP, and then repeat the entire procedure again for the UDP protocol. Examples of opening ports for many modem models can be found at portforward.com.

Example of using the PFPortChecker program

To check if the port opening procedure was successful, ask someone outside your local network to connect to the server using the external IP address (you can also try to connect to yourself using the external address yourself, but failure in this case does not always mean the server is unavailable) . Or download and install the PFPortChecker program. In field Port enter the port number you tried to open. In field Protocol select UDP first and then TCP. Then click the check button. After the check is completed, the program will display 3 totals for TCP and 3 for UDP. If the text of all 6 test results is green, then the procedure was completely successful. For an example, see the screenshot on the right.

Server administration

This section describes the elements of server administration - the process of managing and maintaining the correct operation of the server while it is running using the command line and graphical interface elements.

GUI Description

The GUI of the server window consists of the following elements:

  1. Information window. This window displays information about the amount of RAM used, dynamically builds a graph of the amount of RAM used, etc.
  2. List of players. This window displays a list of nicknames of all players who are connected to the server.
  3. Log and chat. This displays information about the state of the server, errors, the outcome of operations, the use of server control commands by players, etc. All messages sent by players in chat are also displayed here. All information that is in the log window is automatically written to a file server.log, located in the same directory where the server is located.
  4. Command line. This panel is the most important part of the GUI. From it, the administrator can administer the server: add to the whitelist, ban, give players items or operator powers (see below), save the map, stop the server, etc.

Console mode

In console, or nogui, mode there is only a log and a command line. They perform the same functions as the corresponding graphics mode windows.

You can only run the .jar version of the server in console mode ( minecraft_server.jar). To do this, you need to specify the nogui parameter in the launch command:

Java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui

Description of available commands

Commands in the game are divided into two groups: for operators and players. With their help, you can gain access to some useful features, and operators can monitor the state of the server.

FAQ

Q: Players cannot destroy blocks; everything broken comes back. How to fix it?
A: Near the spawn point there is a protected area in which only server operators can place and destroy blocks. That is, players just need to move exactly as many blocks in any direction as is set in spawn-protection in the server configuration file.

Q: The message “Can’t keep up!” appears in the server log all the time. Is server overloaded or system time changed?" What does it mean?
A: This means that the server is currently overloaded and its operation may not be entirely correct. You can reduce the load on the server by closing all third-party programs, thereby reducing the load on the processor and freeing up additional RAM. You can try restarting the server. The speed of the server greatly depends on the number of players playing on it.

Q: Players are complaining that the server is terribly laggy. How can I fix this?
A: Perhaps the Internet connection speed is insufficient, or the computer hardware is too weak. Try to minimize the use of Internet traffic (close Internet browsers, torrent clients, etc.) and reduce the load on the use of computer resources. Add Minecraft_Server.exe to the exclusion list of your firewall/antivirus, or better yet, turn them off. Try restarting the server. Ask players experiencing lag to reconnect to the server - it may be a client-side lag issue.

Q: Players cannot connect to my server. What to do?
A: First, try connecting to it yourself, using the server IP address localhost. If you were unable to connect, the server was created completely incorrectly. You may have made a mistake when configuring the file server.properties, or your antivirus is aggressively blocking the game server. If you managed to connect to your own server, check whether you have correctly determined your own IP address. Perhaps you forgot to open the ports that the game server uses. Review the server log for errors - they may indicate to you the cause of the problem.

Q: When connecting, players receive the message “Outdated server!” / "Outdated client!"
A: Server and client must be the same version, check this carefully.

Q: I want to run my single player map on the server. How can I do it?
A: From folder saves, which is located in the installed game directory ( .minecraft), move the folder with your map (for example, New World) to the folder where the game server is located. Don't forget to change level-name in file server.properties, if your folder is named differently than the current server folder. The transfer must be carried out with the server turned off.

Q: How can I create a new world?
A: Delete all files from your server world folder or specify a new world name in the parameter level-name in file server.properties.

Q: I want to update the server. What is needed for this?
A: Make a backup first - if something goes wrong, you can restore the server from the backup. Then download the server executable file from the official website again and replace your old one with it. Then start the server - all settings, maps and players should be saved.

Q: How can I add functions to the server? /home /warp /spawn and others?
A: Look in Bukkit plugins. For example, there is a great CommandBook plugin.

Q: When creating a server, a message appears in the log: “FAILED TO BIND TO PORT. Perhaps a server is already running on that port?". What to do?
A: This means that the port the server is using is already occupied, or access to it is blocked. Disable your antivirus and firewall, programs that use the Internet. You probably specified a port that is used by another program (for example, a web server or torrent client) or you forgot to open the ports on the modem/router before creating the server. To find out how to do it, see the last section of this article.

Q: A message appears in the server log: “%username% lost connection: End of stream.” What should I do?
A: This problem can sometimes occur on the Windows XP SP3 operating system. Try running the server on a virtual machine (for example, VirtualBox) or change the operating system.

Q: When starting the server I get an error that my version of Java is out of date. How do I know what version of Java I have?
A: The game requires Java 8 to run. To check your version, do the following:

  1. Open a command line (console, terminal):
    • Windows: -> cmd ->
    • Linux: Menu placement varies depending on the shell, usually Applications -> System / Accessories -> Terminal
    • OS X: In the Dock or Finder: Programs -> Utilities -> Terminal
  2. At the command prompt, type java -version and press Enter
  3. In the response, find the line starting with java version. The number next is the Java version.

If you receive a message like this in response:

Java is not an internal or external command, executable program or batch file (Windows) bash: java: command not found (Linux & OS X)

this means that you do not have Java installed or the environment variables are not configured (the latter is usually only for Windows). Try the following:

  1. Right click on My Computer
  2. Click on Properties
  3. Click on Advanced system settings
  4. Click on Environment Variables
  5. In the list of system variables, find the Path variable
  6. Click Edit and add to the end: ;%ProgramFiles(x86)%\Java\jre6\bin
  7. Reopen Command Prompt and try again

If your version is lower than 1.6.1 or you do not have Java installed, go to the Java download page and download the latest version.

Q: I have a dynamic IP! Should I buy a static address for the sake of the server? Minecraft'I don't want to...
A: Using services like DynDNS or No-IP, you can get a static third level domain (myminecraft.dyndns.org, serverminecraft.zapto.org...)

The server in the Minecraft game allows the user to play with other people in the world he created. However, for many players, especially beginners, creating their own server sometimes becomes a problem.

Server capabilities in the game Minecraft

  • The player who created his server completely controls the new space. In this virtual entity, it is possible to place cards on which you can play games with other users.
  • Experienced players who come up with something interesting can enter their developments into the race.
  • Basically, users create their own dimensions and invite outside players through the server to play together.

The process of creating a server in Minecraft

The procedure for inventing and programming your own server in a game is not at all difficult. To do this, you just need to perform the following sequence of actions.

  • Open any browser.
  • Go to the page with the following address: http://www.minecraft.net/download.jsp.
  • Find the file named Minecraft_Server.exe in the list.
  • Download it to your computer's hard drive.
  • After the download is complete, you need to open the folder intended for unpacking the server.
  • Then you will need to transfer the saved file to it.
  • When you double-click on the file, a window will appear that can be closed only after all server installation processes have been completed. In any case, the start of unpacking will begin only when the game port 25565 is connected. After this, the creation of the server will be completed.
  • If during installation the computer port is closed, you need to allow java access to your PC. If some program, for example, antivirus or java, blocks the downloaded file, then you will need to reinstall it on your computer. When re-unpacking, you must remember to indicate the access rights permission value in the firewall message.


Starting a server in Minecraft

After the server has been created, it needs to be launched in Minecraft. This is not difficult to do by following a strict sequence of steps.

  • Run the processed file and wait for the download to complete.
  • Enter the Minecraft game. Here, entering a password and login will be optional.
  • Select Multiplayer mode.
  • Go to Add Server.
  • In the field provided, enter the IP address and name that will be indicated in the lists. Click the Done button.
  • If green bars appear on the right, then the server is working well and is currently online.
  • The next step is to follow the Join Server link.
  • Next, the game will launch from the already created space.

Often, determining your IP address becomes a problem for players, due to its ignorance by ordinary network users. It's actually very easy to recognize. One of the simplest methods is to go to the website www.2ip.ru, where the information you need will be displayed on the screen immediately after going to the resource. Users with a constantly changing IP address will need to update the server-ip= line every time they start the game.

Before I start talking about the technical details, I want to clarify the situation regarding the creation of a “live and visited” server. These stages are divided into three parts:

  1. Server creation;
  2. Configuring and installing plugins;
  3. Attracting players.

If the first point takes 30 minutes, the second one can take a whole day (using plugins, you can make your own unique Minecraft “world”), and the third one is an activity for an indefinite period of time.

Creating your own server, inviting friends to it, playing for a couple of evenings is not difficult, but in order for your server to become famous and visited, you will need to work hard, and this work will be far from the game - buying a dedicated IP, creating a server site, its advertising, promotion, purchasing a dedicated server for the game, etc.

In this article I will only talk about the first, simplest point - creating your own server on a personal computer, without a dedicated IP.

Types of servers

There are several “packages” of servers - original, so to speak “clean”, and immediately with some package of mods. The instructions follow the example of installing the official version. Once you deal with her, you will deal with others too.

Instructions

1. Go to the page http://www.minecraft.net/download.jsp

Download Minecraft_Server.exe. The official website always contains the latest version of the server.

Note: as of today (November 5, 2011), the official server has server version 1.8.1, while most players already have . Download server part for 1.9.5: (downloads: 32767)

2. Transfer the downloaded file Minecraft_Server.exe (or minecraft_server.jar) to the folder in which you will have the server (do not run it on the desktop).

3. If you have port 25565 open, you will see the following window:

Wait for the process to complete. Then close the window.

If the port is closed, or something is blocking the operation of Minecraft_Server.exe or Java, the following message will appear:

What to do if nothing works out?

I myself suffered a lot when I made the server for the first time (especially with this port 25565), and I tried to write all the conclusions in this instruction. But if something still doesn’t work out for you, then go to our forum in the minecraft section (don’t be alarmed that it’s empty yet - we just opened the section), and create a topic where write in detail: your operating system, the antivirus/firewall that is on your computer, what you are doing, and what errors occur, preferably with screenshots.

AND we will deal with each one separately(determine what is the cause of the error and how to fix it), and then supplement this instruction with new conclusions. It is useless to write about errors in the comments - because... Many people comment, but you need to deal with each individually.

In the comments to this instruction, it is better to write not about problems, but about how you solved a problem. In this case, comments will be helpful.

I reject offers to log into Skype or connect via TeamViewer and “solve everything” there, because... firstly, I may be away/busy, and other participants on the forum can help you, and secondly, because my task is to write instructions so that you can start the server.