How to create your own minecraft server? Creating and setting up a server.


All Minecraft players have thought about: - “How to create a Minecraft server?” , "How to open ports on a computer?", "How to start a minecraft server?" Everyone wants to feel the power of the administration over the server players, or simply finding a suitable server to play with friends is not so easy. Since not every player can afford to rent expensive hosting for a minecraft server. we will look at options for running a server on a computer. We will discuss these and a few more questions in part in this article.

Features of kernels for minecraft

To run the server, the developers created server cores. They are our main part of the server, which determine the version of the server.
We have created where the most common versions of cores for the minecraft server are located with download links from the site and a description of each core and its features. You can choose the right kernel for you.
We will consider from the most simple kernels for the minecraft server to the most difficult.

Description of the core for the Minecraft server

Vanilla

Vanilla Core- this is the very first kernel that is released after the version of the game itself is published, then assemblies of other kernels are created on its basis. You cannot install mods or plugins for Minecraft on the Vanilla core. It can be downloaded from the official website

CraftBukkit

CraftBukkit - aims to make it easier for developers to create plugins, since CraftBukkit can support plugins that are written only for this core.

Spigot

Spigot core created on the basis of the CraftBukkit core and is designed to replace the “big brother” with stability and performance as it allocates even less random access memory. In addition, all plugins written for CraftBukkit will also work on Spigot, but Spigot also has its own plugins that are not available to CraftBukkit.

PaperSpigot

PaperSpigot core is a third-party improvement to the Spigot core that requires even less RAM and is perfect for installing plugins on it. All plugins designed for Spigot will install perfectly on PaperSpigot.

MCPC plus

MCPC plus core is a server modification which, unlike its older brother (MCPC) which was created on the basis of Bukkit, MCPC plus is written from scratch, and allows you to install mods and plugins on the minecraft server without any porting.

Cauldron

Cauldron Core is a server modification based on MCPC plus which is created for installing both mods and plugins on the server. Minecraft is already built into it, and installing mods with this core will not be difficult. This kernel was developed by combining the efforts of the Swedish developers of server server kernels Spigot, Cauldron and Bukkit.

Choosing a kernel for creating a server

This is one of the most important issues when creating a server. First, you must select the version of your server, then will this server have mods, or will it only have plugins.

For a server with only plugins, server cores such as PaperSpigot, Spigot, CraftBukkit, and of course Vanila are excellent.

For a server with mods, you can use the Cauldron and MCPC plus kernels.

You can find all server cores

1) Create a folder future server and go to it.
2) Download your chosen server core
3) In the same folder, create a text document and call it starter.bat(you can name the file whatever you want, the main thing is that it has an extension .bat)
4) Click right click mouse over the file and click "Change". It is better to use an editor to edit server files

5) Write the value in the file -

@ECHO OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" java -Xincgc -Xmx1G -Dfile.encoding=UTF-8 -jar paperspigot-1.11.2.jar

where paperspigot-1.11.2.jar is the name of your kernel.. Save the file

6) Launch our created file double click left mouse button.

The server console should appear, and after a while it should close so that you can agree to the rules EULA.

7) Several folders have appeared in the folder with our server, we now need a file called eula.txt. Open it and change the value false on true. Then save the document and close.

8) We launch ours again starter.bat. The console should appear and the server should boot completely.
We write in English letters in the console stop And press Enter thereby stopping the server.

After which the server will save all files and the console will close.

Approximately the same folders and files will appear in the server folder as in the screenshot below.

9) Now in the folder with the server, open our main server settings file - server.properties, and immediately change the value online-mode=true on online-mode=false, thus we will be able to access the server with pirated versions minecraft. Save the file.

generator-settings- sets the template for generating a superflat world;

allow-nether- determines the possibility of transition to the Lower World. By default, this setting is set to true. If set to false, then all players from the Nether will be moved to the normal one;

level-name- the name of the folder with map files that will be used during the game. The folder is located in the same directory where the server files are located. If there is no such directory, the server automatically creates new world and places it in a directory with the same name;

enable-query- at set value true enables the GameSpy4 protocol to listen to the server;

allow-flight- allows flights on Minecraft world. The default value is false (flights are prohibited);

server-port- indicates the port that will be used by the game server. The standard port for Minecraft is 25565. It is not recommended to change the value of this parameter;

level-type- determines the type of world (DEFAUT/FLAT/LARGEBIOMES);

enable-rcon- opens remote access to the server console. By default it is disabled (false);

level-seed- input data for the level generator. To be able to create random worlds, this field must be left blank;

force-gamemode- sets the standard game mode for players connecting to the server;

server-ip- indicates the IP address that will be used by players to connect to the server;

max-build-height- indicates the maximum height of a building on the server. Its value must be a multiple of 16 (64, 96, 256, etc.);

spawn-npcs- allows (if set to true) or prohibits (if set to false) the appearance of NPCs in villages;

white-list- enables and disables the use of a white list of players on the server. If set to true, the administrator will be able to create a white list by manually adding player nicknames to it. If the value is false, then any user who knows its IP address and port can access the server;

spawn-animals- allows automatic spawning of friendly mobs if set to true);

snooper-enabled- allows the server to send statistics and data to developers;

hardcore- enables Hardcore mode on the server;

texture-pac- texture file that will be used when the player connects to the server. The value of this parameter is the name of the zip archive with textures, which is stored in the same directory as the server;

online-mode- includes verification of premium accounts of users connecting to the server. If this parameter is set to true, only premium account holders will be able to access the server. If account verification is disabled (set to false), then any users can access the server (including, for example, players who have faked their nickname), which creates additional security risks. With verification disabled, you can play Minecraft using local network, without Internet access;

pvp - allows or denies players to fight with each other. If this parameter is true, then players can destroy each other. If set to false, players cannot deal direct damage to each other;

difficulty- sets the difficulty level of the game. Can take values ​​from 0 (easiest) to 3 (most difficult);

gamemode- indicates which Game Mode will be installed for players entering the server. Can take the following values: 0 - Survival, 1-Creative, 2-Adventure;

player-idle-timeout- inactivity time (in minutes), after which players are automatically disconnected from the server;

max-players- maximum allowed number of players on the server (from 0 to 999);

spawn-monsters- allows (if set to true) the generation of hostile mobs;

generate-structures- enables (true)/disables (false) the generation of structures (treasuries, fortresses, villages);

view-distance- regulates the radius of updated chunks to be sent to the player; can take values ​​from 3 to 15.

10) Start the server again by running starter.bat.

After the server is fully loaded, you will be able to log into the server. Using an IP address 127.0.0.1 or localhost. This local addresses your computer, and at this address you will be able to connect to the server that is running only from your computer.

To make the most of your server, you need to give your nickname an OP. The easiest way to do this is to write in the running server console
op VashNick Everything in the console is written in Latin (English) letters.
For example, my nickname in the game SyRauk
So in order to register the op I need to register in the console
op SyRauk You need to write without "/" (slash)

After entering the command, press ENTER

The case does not matter. (You can write with either a small or a capital letter)

Article extracted from site article

Minecraft Admin Commands

/clear [object number] [additional data]- Clears the specified player's inventory of all items or specific IDs.

/debug- Starts debug mode or stops it.

/defaultgamemode- Allows you to change the default mode for new players on the server.

/difficulty- Changes the difficulty of the game, 0 - peaceful, 1 - easy, 2 - normal, 3 - difficult.

/enchant [level]- Enchant an item in your hands to the level specified in the command.

/gamemode [target]- Changes the game mode for the specified player. Survival (survival, s or 0), Creativity (creative, c or 1), Adventure (adventure, a or 2). For the command to work, the player must be online.

/gamerule [value]- Allows you to change several basic rules. The value must be true or false.

Rules:

doFireTick- if false, stops the spread of fire.
doMobLoot- if false, mobs do not drop drops.
doMobSpawning- when false, prohibits mob spawning.
doTileDrops- if false, objects do not fall out of destructible blocks.
keepInventory- if true, after death the player does not lose the contents of his inventory.
mobGriefing- if false, mobs cannot destroy blocks (creeper explosions do not spoil the landscape).
commandBlockOutput- if false, the command block does not output anything to the chat when executing commands.

/give [amount] [ Additional Information] - Gives the player an item specified by block ID.

/help [page | team] ? [page | team]- Displays a list of all available console commands.

/publish- Provides access to the world via a local network.

/say- Shows a message in pink to all players.

/spawnpoint [target] [x] [y] [z]- Allows you to set the spawn point for the player at the specified coordinates. If coordinates were not specified, the spawn point will be your current position.

/time set- Allows you to change the time of day. Time can be specified in numerical value, where 0 is dawn, 6000 is noon, 12000 is sunset and 18000 is midnight.

/time add- Adds the specified amount of time to the current one.

/toggledownfall - Allows you to enable or disable precipitation.

/tp , /tp- Makes it possible to teleport a player specified by name to another or to the entered coordinates.

/weather- Allows you to change the weather for a specific time specified in seconds.

/xp- Gives a specific player the specified amount of experience, from 0 to 5000. If you enter L after the number, the specified number of levels will be added. In addition, levels can be lowered, for example -10L will reduce the player's level by 10.

/ban [reason]- Allows you to block a player’s access to the server by nickname.

/ban-ip- Allows you to block a player’s access to the server by IP address.

/pardon- Allows you to unblock the specified player from accessing the server.

/pardon-ip- Removes the specified IP address from the blacklist.

/banlist- Allows you to see a list of all players blocked on the server.

/op- Gives the specified player operator privileges.

/deop- Takes away operator privileges from the player.

/kick [reason]- Kicks the specified player from the server.

/list- Displays a list of all players online.

/save-all- Forcefully saves all changes to the server.

/save-on- Allows the server to make automatic saves.

/save-off- Prevents the server from performing automatic saving.

/stop- Shuts down the server.

/whitelist list- Displays a list of players in the whitelist.

/whitelist- Adds or removes a player to the whitelist.

/whitelist- Enables or disables the use of a whitelist on the server.

/whitelist reload- Reloads the whitelist, that is, updates it in accordance with the white-list.txt file (can be used when white-list.txt is modified manually).

Even more commands for the minecraft server have been written

How to open ports for a minecraft server

If you have ever used Skype or torrent or creating game server on your computer, then you encountered the problem of opening ports on the router and setting up a firewall or firewall. If in the case of programs like Skype or for example uTorrent it is much simpler, since they themselves configure and open ports in automatic mode using UPNP (Universal Plug And Play) technology - Universal automatic configuration network devices., and add themselves to the firewall exclusion list themselves, then setting up a game or web server requires the user to do all this manually.

Before moving directly to practice, let's define the terminology:

Port- application address to local computer. It is tied to the IP address of your computer and it looks something like this: 192.168.1.7:80 . In this case 192.168.1.7 this is the IP address, and what remains after the colon is the port, that is 80 . Ports are needed in order to determine for which program the information received from the network was intended. There are 65,536 ports in total, which is two to the sixteenth power. Some of them are reserved. For example, port 80 is used by servers to work with HTTP and port 444 is used to work with HTTPS. If you need to create your own web server, then you will need to open both of these ports for incoming and outgoing connections. By the way, ports are used by two protocols, TCP and UDP, and the difference between them is that TCP allows you to create a connection in which all data is checked and reaches the recipient guaranteed, without errors. And UPD transmits data without integrity checks and does not guarantee delivery, which is not entirely good. But due to unreliability UDP protocol the load on the server is reduced, so it is very often used in online games, where a lot of players are playing at the same time, and for transmitting streaming video for example the Skype program. Sometimes ports are used by viruses to remote connection and transferring user data to attacker servers, for this there are programs for filtering ports, they can be called differently Firewall, firewall, firewall, and so on. But they have the same goal - to prevent viruses from working normally, and vice versa - to do everything possible to regular programs worked correctly. For example, if your computer is connected to the Internet through a router, and this router has a firewall, and you have a firewall installed on your computer and the rules of these firewalls prohibit accepting and receiving traffic, for example, on port 5000, then until you configure both of these filters, then A program using this port will not work correctly.
I hope now you understand more or less what a port is and what a firewall is used for. And now you can move on to the most interesting and useful thing, the settings.

Video instruction.

Information for this article was taken from the news site

Every Minecraft player wants to play with his friends on servers, but it is very difficult to find a decent server, and you want to be the admin yourself, so you can create your own Minecraft server. We wrote this article and filmed a video in which they sorted out everything that relates to the server and after it, you are unlikely to ask the question how to create a Minecraft server on Windows.

Video instruction:


There are many Minecraft server cores, we will tell you about the four most popular ones.


Vanilla- official core from the developers. Pros: Released immediately after release new version; Cons: Not many plugins; Low optimization of resource use; You will have to install Forge separately if mods are needed.


Bukkit- Core based on Vanilla. Pros: Highly optimized compared to the standard kernel; Lots of written plugins from third party developers. Cons: You will have to install Forge separately if mods are needed; The project was completely closed at version 1.6.4, there is no support on the official website. Exists now along with Spigot.


Spigot- More optimized core based on Bukkit. Pros: Many improvements over bakkit; All plugins written in Bakkit work smoothly on this kernel. Cons: For a beginner, installation may seem complicated; You will have to install Forge separately if mods are needed.


Cauldron(previously MCPC+) - A core based on Spigot that includes Forge pre-installed. Pros: Since Forge is already pre-installed, if you want to install mods, you don’t need to install it yourself; All plugins written in Bakkit work smoothly on this kernel. Cons: New versions of Minecraft have to wait quite a long time for the build, since first the developers are waiting for the release of the updated Spigot.

Now you need to decide for what purposes you need a server and, based on this, choose the kernel on which you will develop the server. We will show the creation of a server using the example of each core.

1) First, download the server itself of the version you need:

(downloads: 6695)

(downloads: 6842)

(downloads: 30288)


(downloads: 233)

(downloads: 20230)

(downloads: 14446)

(downloads: 799)

(downloads: 16740)

(downloads: 215)

(downloads: 683)

(downloads: 336)

(downloads: 101)

(downloads: 191)

(downloads: 104)

(downloads: 9476)

(downloads: 7579)

(downloads: 11945)

(downloads: 312)

(downloads: 178)

(downloads: 162)

(downloads: 169)

(downloads: 506)

(downloads: 205)

(downloads: 470)

(downloads: 3932)

(downloads: 4478)

(downloads: 206)

(downloads: 267)

(downloads: 223)

(downloads: 1320)

(downloads: 962)

(downloads: 227)

(downloads: 159)

(downloads: 1566)


2) Create for the server separate folder and copy the downloaded file.


3) Launch the server file (for a file with the *.jar extension, you need to right-click on the file -> Open with -> Java) and the console window will immediately close (* for versions above 1.6), eula.txt false on true. Save the modified file.


4) We start the server again, wait a few seconds and see that many files have appeared in the folder, including the world folder, which means the server has started normally. But you won’t be able to log in yet (unless you have a license, of course), to log in from a pirated site, open the file " server.properties" and find the parameter " online-mode=" and change the value from true on false.


5) You can enter the game, into a network game, add new server, you can use IP "127.0.0.1" (Without quotes) or "localhost".



1) Download the server version you need:

(downloads: 35937)


(downloads: 231)

(downloads: 18320)

(downloads: 13919)

(downloads: 702)

(downloads: 1265)

(downloads: 14882)

(downloads: 561)

(downloads: 217)

(downloads: 8386)

(downloads: 6813)

(downloads: 385)

(downloads: 175)

(downloads: 381)

(downloads: 180)

(downloads: 249)

(downloads: 6427)

(downloads: 6081)

(downloads: 230)

(downloads: 348)

(downloads: 1747)

(downloads: 1533)

(downloads: 145)

(downloads: 1685)

(downloads: 299)

(downloads: 254)


2) Create a separate folder for the server and copy the downloaded file there. Create a file start.bat(The simple .txt file must be renamed with the extension start.bat) with the following content:
@echo off
java-jar spigot.jar
pause

Download this file if you don’t understand how to create it:

(downloads: 90557)

2.1) Next, copy this file to the server folder.
Attention: Be sure to replace the line in the file spigot.jar to your server name, for example spigot-1.8.8-R0.1-SNAPSHOT-latest.jar !
To edit a file start.bat, you need to: right-click -> "Edit".


3) Launch our " start.bat", you should see the following (* for server versions higher than 1.6):


A couple of new files have appeared in the server folder, we are interested in " eula.txt", which you need to open and change the value false on true. Save the modified file.
What kind of file is this? This is a user agreement between Mojang and you, by setting the value to true you agree to all the terms of this agreement.


But you won’t be able to log in yet (unless you have a license, of course), to log in from a pirated site, open the file " server.properties" and find the parameter " online-mode=" and change the value from true to false.


What kind of online-mode parameter is this? He is responsible for checking the license of the player trying to connect to the server; if the player logs in from a pirated client, the server will not let him through.

5) Go to the game, to the network one, add a new server, entering as IP - " localhost" (Without using quotation marks).


1) Download the version of the server on which you want to play:

(downloads: 206174)

2) Unpack the downloaded archive into a separate folder.

3) Run the file start.bat and you will see the following (* for version above 1.6):


A couple of new files have appeared in the server folder, we are interested in " eula.txt", which you need to open and change the value false on true. Save the modified file.
What kind of file is this? This is a user agreement between Mojang and you, by setting the value to true you agree to all the terms of this agreement.

4) Start the server again. We wait for the launch to complete and see the word “Done” at the end, which means everything is ok.

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 it on your PC java package. 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 messages in the chat about receiving 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 placed 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 control server. 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 defines the port value in TCP protocols and UDP, which the game server will use. Standard for Minecraft port - 25565. It is recommended not to change the value, because to log into a server using standard port, the player will only need to dial IP or DNS address, without specifying a port, or 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 last change server of this file. 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’s 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 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 dynamic address changes every time you reconnect to the provider (and you will have to constantly report new address 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 special program, which you will need to install on your computer, but some modems and routers can perform this function themselves (check your 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 colour, which means the procedure was a complete success. 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 correct operation 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 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: Your Internet connection may not be fast enough, or Hardware the computer 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 own server, check whether you have determined your own IP address correctly. 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 map on the server from single player. 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 backup copy. Then download again from the official website executable file server 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 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 happen in the operating room. Windows system XP SP3. 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 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 internal or external team, executable program or batch file(Windows) bash: java: command not found (Linux & OS X)

then this means that Java is not installed or configured for you Environment Variables(the latter is usually Windows only). 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...)

Everyone has heard about such a popular game as Minecraft, and many have even played it. Well maybe better than that an unforgettable feeling when, after five hours of arranging the mines and destroying evil monsters, you find a small clutch of diamonds?! And I'll tell you what - a company of good friends! But in order to revive your small world, you first need to learn how to create a server for Minecraft. Believe me, there is nothing complicated about this.

How to create a Minecraft server: necessary software

First, you need the server itself, which (unlike the game) is distributed free of charge, and latest version virtual Java machines. Please note that if Minecraft runs freely for you, this is a clear sign that Java is already installed on your system.

How to Create a Minecraft Server: Your Server Options

Despite the fact that the server may already be running and suitable for playing, it is still recommended that you familiarize yourself with its settings. They are located in the server.properties file, which is created after the server is started for the first time. Here is the content of this file with detailed description for version 1.5.1:

Allow-nether - determines whether your world has access to Hell or not (TRUE/FALSE);

Level-name - the name of your world (=NAME);

Allow-flight - allows or denies flight on your server (TRUE/FALSE);

Server-port - server access port (=ХХХХХ);

Level-type - type the world being created(=DEFAULT/FLAT/LARGEBIOMES);

Enable-rcon - allows or denies remote access to your server (TRUE/FALSE);

Level-seed - grain for world generation. For a random world, leave the field blank;

Server-ip - the address of your server (your IP or virtual network IP);

Max-build-height - maximum height of the world (=<272);

Spawn-npcs - allows or denies NPCs (TRUE/FALSE);

White-list - enable or disable the "white list". If the parameter is enabled, you must manually add players to the server (TRUE/FALSE);

Spawn-animals - allows or prohibits animals (TRUE/FALSE);

Texture-pack - use of a “non-standard” texture pack;

Online-mode - enable or disable authentication of premium accounts (TRUE/FALSE);

Pvp - allows or prohibits battles between players (TRUE/FALSE);

Difficulty - game difficulty (0 - Calm; 1 - Easy; 2 - Normal; 3 - Difficult);

Gamemode - game mode (0 - Survival; 1 - Creativity; 2 - Adventure);

Max-players - the largest number of people playing simultaneously (=<1000);

Spawn-monsters - allows or prohibits monsters (TRUE/FALSE);

Generate-structures - allows or denies villages, fortresses and other buildings (TRUE/FALSE);

View-distance - drawing distance (=<10);

Motd - the name of your server (=NAME).

How to create a Minecraft server: connecting to the server

It is worth saying that it is possible to play both on a local network and on the Internet. And both of these solutions have significant differences. There's not much that can be said about how to create a local Minecraft server. It can be launched directly from a single-player game, but the rights of the owner of this server are significantly infringed compared to the owner of a dedicated server; naturally, you can forget about “modding”, whitelists and server commands. To access your local server, use localhost as the address, and your friends can join you via your internal IP. If you plan to play over the Internet, change the server-ip of the server.properties file to your static IP or Hamachi, Garena, or Tunngle IP.

How to create a Minecraft server: useful commands

Remember the information necessary for the game:

Difficulty - changes the difficulty of the game;

Toggledownfall - toggles precipitation;

Weather - sets a specific weather for a specified time;

Xp - gives a certain player a specified amount of experience;

Tp - command to teleport one player to another;

Save-all - forced saving of the game world to the hard drive.







2024 gtavrl.ru.