Użytkownik:Vatharannen/brudnopis: Różnice pomiędzy wersjami
d Dodanie sekcji z server.properties |
dNie podano opisu zmian |
||
| Linia 11: | Linia 11: | ||
'''server.properties''' to plik określający parametry [[serwer]]a. | '''server.properties''' to plik określający parametry [[serwer]]a. | ||
Podczas edycji pliku server.properties ''nie powinno się modyfikować parametrów'', tj. tekstu przed znakiem równości. Dane należy wpisywać po nim. Możliwe jest komentowanie danych parametrów - linia z tekstem rozpoczynająca się od znaku <code>#</code> nie będzie uwzględniana w grze. | |||
Zmiany w pliku server.properties wymagają ponownego uruchomienia serwera, w celu zastosowania nowych zmian. | |||
Jeżeli plik nie zawiera wszystkich parametrów (np. wskutek aktualizacji do nowej wersji) po ponownym uruchomieniu serwera plik server.properties zostanie rozszerzony o nowe wartości i przywrócony do stanu domyślnego. | |||
== Lokalizacja pliku == | == Lokalizacja pliku == | ||
| Linia 101: | Linia 101: | ||
| boolean | | boolean | ||
| false | | false | ||
| {{Anchor|allow-flight}} | | {{Anchor|allow-flight}}Określa, czy gracze mogą latać w trybie przetrwania, jeżeli posiadają [[modyfikacja|modyfikację]] pozwalającą na lot. Parametr nie ma wpływu na tryb kreatywny. | ||
:'''false''' - Latanie jest zabronione, gracze latający w trybie przetrwania dłużej niż 5 sekund są wyrzucani z serwera. | |||
:'''false''' - | :'''true''' - Latanie w trybie przetrwania jest dostępne, jeśli gracz posiada odpowiednią modyfikację. | ||
:'''true''' - | |||
|- | |- | ||
| Linia 110: | Linia 109: | ||
| boolean | | boolean | ||
| true | | true | ||
| {{Anchor|allow-nether}} | | {{Anchor|allow-nether}}Określa, czy portale Netheru mają działać. | ||
:'''false''' - | :'''false''' - Portale Netheru nie będą działać. | ||
:'''true''' - | :'''true''' - Serwer zezwala Portalom Netheru na przenoszenie graczy. | ||
|- | |- | ||
| Linia 118: | Linia 117: | ||
| boolean | | boolean | ||
| true | | true | ||
| {{Anchor|announce-player-achievements}} | | {{Anchor|announce-player-achievements}}Określa, czy gracze mają możliwość zdobywania osiągnięć. | ||
:'''false''' - osiągnięcia są wyłączone. | |||
:'''true''' - osiągnięcia są dostępne. | |||
|- | |- | ||
! <span style="white-space:nowrap;">'''difficulty'''</span> | ! <span style="white-space:nowrap;">'''difficulty'''</span> | ||
| integer (0-3) | | integer (0-3) | ||
| 1 | | 1 | ||
| {{Anchor|difficulty}} | | {{Anchor|difficulty}}Określa poziom trudności panujący na serwerze. | ||
:'''0''' - | :'''0''' - Pokojowy | ||
:'''1''' - | :'''1''' - Łatwy | ||
:'''2''' - | :'''2''' - Normalny | ||
:'''3''' - | :'''3''' - Trudny | ||
|- | |- | ||
| Linia 134: | Linia 134: | ||
| boolean | | boolean | ||
| false | | false | ||
| {{Anchor|enable-query}} | | {{Anchor|enable-query}}Włącza protokół Game4Spy, używany do uzyskania informacji o serwerze. | ||
|- | |- | ||
| Linia 140: | Linia 140: | ||
| boolean | | boolean | ||
| false | | false | ||
| {{Anchor|enable-rcon}} | | {{Anchor|enable-rcon}}Włącza zdalny dostęp do konsoli serwera. | ||
|- | |- | ||
| Linia 146: | Linia 146: | ||
| boolean | | boolean | ||
| false | | false | ||
| {{Anchor|enable-command-block}} | | {{Anchor|enable-command-block}}Określa, czy bloki poleceń mogą działać. | ||
|- | |- | ||
| Linia 152: | Linia 152: | ||
| boolean | | boolean | ||
| false | | false | ||
| {{Anchor|force-gamemode}} | | {{Anchor|force-gamemode}}Nadaje graczom wchodzącym na serwer konieczność posiadania określonego trybu gry. | ||
:'''false''' - | :'''false''' - Gracz po ponownym wejściu na serwer posiada taki sam tryb, jak przed ostatnim jego opuszczeniem. | ||
:'''true''' - | :'''true''' - Gracz zawsze po ponownym wejściu będzie posiadał określony tryb gry. | ||
|- | |- | ||
| Linia 160: | Linia 160: | ||
| integer (0-3) | | integer (0-3) | ||
| 0 | | 0 | ||
| {{Anchor|gamemode}} | | {{Anchor|gamemode}}Określa tryb gry. | ||
:'''0''' - | :'''0''' - Przetrwanie | ||
:'''1''' - | :'''1''' - Kreatywny | ||
:'''2''' - | :'''2''' - Przygodowy | ||
:'''3''' - | :'''3''' - Widz | ||
|- | |- | ||
| Linia 170: | Linia 170: | ||
| boolean | | boolean | ||
| true | | true | ||
| {{Anchor|generate-structures}} | | {{Anchor|generate-structures}}Określa, czy struktury mogą się pojawiać. | ||
:'''false''' - | :'''false''' - Struktury nie będą pojawiały się w nowych chunkach. | ||
:'''true''' - | :'''true''' - Struktury będą generowane. | ||
''' | '''Uwaga:''' ''Lochy będą się pojawiały również przy parametrze false.'' | ||
|- | |- | ||
| Linia 179: | Linia 179: | ||
| string | | string | ||
| ''blank'' | | ''blank'' | ||
| {{Anchor|generator-settings}} | | {{Anchor|generator-settings}}Ustawia opcję generatora mapy. | ||
|- | |- | ||
| Linia 185: | Linia 185: | ||
| boolean | | boolean | ||
| false | | false | ||
| {{Anchor|hardcore}} | | {{Anchor|hardcore}}Jeżeli wartość wynosi true, gracze po śmierci będą mieli tryb zmieniony na widza. Aktywacja tego parametru nie spowoduje zmiany poziomu trudności na Trudny. | ||
|- | |- | ||
| Linia 191: | Linia 191: | ||
| string | | string | ||
| world | | world | ||
| {{Anchor|level-name}} | | {{Anchor|level-name}}Parametr określa, pod jaką nazwą ma zostać zapisany folder z danymi świata. | ||
: | :Nazwy z apostrofem muszą mieć przed nim ukośnik wsteczny. | ||
|- | |- | ||
| Linia 198: | Linia 198: | ||
| string | | string | ||
| ''blank'' | | ''blank'' | ||
| {{Anchor|level-seed}} | | {{Anchor|level-seed}}Określa, jakie ziarno generatora ma zostać nadane światu. | ||
|- | |- | ||
| Linia 205: | Linia 204: | ||
| string | | string | ||
| DEFAULT | | DEFAULT | ||
| {{Anchor|level-type}} | | {{Anchor|level-type}}Ustawia, jaki typ świata ma zostać wygenerowany. | ||
:'''DEFAULT''' - | :'''DEFAULT''' - Świat standardowy. | ||
:'''FLAT''' - | :'''FLAT''' - Świat superpłaski, bez opcji generowania struktur. | ||
:'''LARGEBIOMES''' - | :'''LARGEBIOMES''' - Świat bliźniaczy do domyślnego, lecz biomy są kilkukrotnie większe. | ||
:'''AMPLIFIED''' - | :'''AMPLIFIED''' - Świat domyślny ze zmienionym limitem maksymalnej wysokości budowania. | ||
:'''CUSTOMIZED''' - | :'''CUSTOMIZED''' - Świat dostosowany do ustawień generatora z parametru ''generator-settings''. | ||
|- | |- | ||
| Linia 216: | Linia 215: | ||
| integer | | integer | ||
| 256 | | 256 | ||
| {{Anchor|max-build-height}} | | {{Anchor|max-build-height}}Określa maksymalną wysokość, na jakiej możliwe jest budowanie. | ||
|- | |- | ||
| Linia 222: | Linia 221: | ||
| integer (0-2147483647) | | integer (0-2147483647) | ||
| 20 | | 20 | ||
| {{Anchor|max-players}} | | {{Anchor|max-players}}Ustawia maksymalną liczbę graczy będących jednocześnie na serwerze. | ||
:'''Uwaga:''' Duża ilość graczy może pobierać bardzo dużą ilość pamięci RAM. Ekstremalnie duże wartości liczby graczy mogą powodować błędy serwera. | |||
|- | |- | ||
| Linia 228: | Linia 228: | ||
| integer (0–(2^63 - 1)) | | integer (0–(2^63 - 1)) | ||
| 60000 | | 60000 | ||
| {{Anchor|max-tick-time}} | | {{Anchor|max-tick-time}}Ustawia maksymalną liczbę ticków jaką może przyjąć serwer bez wyłączenia się. Kiedy liczba ticków zostanie przekroczona, serwer zostanie wyłączony. | ||
:'''-1''' - | :'''-1''' - wyłącz opcję (opcja dodana w 14w32a) | ||
|- | |- | ||
| Linia 235: | Linia 235: | ||
| integer (1-29999984) | | integer (1-29999984) | ||
| 29999984 | | 29999984 | ||
| {{Anchor|max-world-size}} | | {{Anchor|max-world-size}}Określa, jak duży fragment świata jest dostępny dla graczy. Za osią o danej wartości pojawia się granica świata. | ||
|- | |- | ||
! <span style="white-space:nowrap;">'''motd'''</span> | ! <span style="white-space:nowrap;">'''motd'''</span> | ||
| string | | string | ||
| ''A Minecraft Server'' | | ''A Minecraft Server'' | ||
| {{Anchor|motd}} | | {{Anchor|motd}}Pozwala na wyświetlanie tekstu pod nazwą serwera w menu serwerów. Uwzględnia [[formatowanie tekstu]] i znaki specjalne. Maksymalna liczba znaków w tekście to 59. | ||
|- | |- | ||
Wersja z 13:13, 30 sty 2017
| Artykuł w budowie! Trwa budowa strony Vatharannen/brudnopis.
Jeśli chcesz, możesz pomóc przy jej tworzeniu.
|
Jesteś teraz na stronie brudnopisu użytkownika VaderVCD. Możesz przejrzeć moje zapiski.
Jeśli ta strona jest pusta, to znaczy, że aktualnie nie pracuję nad większą edycją/nową stroną.
server.properties
server.properties to plik określający parametry serwera.
Podczas edycji pliku server.properties nie powinno się modyfikować parametrów, tj. tekstu przed znakiem równości. Dane należy wpisywać po nim. Możliwe jest komentowanie danych parametrów - linia z tekstem rozpoczynająca się od znaku # nie będzie uwzględniana w grze.
Zmiany w pliku server.properties wymagają ponownego uruchomienia serwera, w celu zastosowania nowych zmian.
Jeżeli plik nie zawiera wszystkich parametrów (np. wskutek aktualizacji do nowej wersji) po ponownym uruchomieniu serwera plik server.properties zostanie rozszerzony o nowe wartości i przywrócony do stanu domyślnego.
Lokalizacja pliku
Plik server.properties jest tworzony automatycznie po uruchomieniu oprogramowania serwera.
| System | Lokalizacja pliku | Uwagi |
|---|---|---|
| Windows | Taka sama jak lokalizacja pliku minecraft_server.exe | |
| Linux
Unix Unix/Mac |
Katalog roboczy (pwd) |
If you start it from your home directory (/home/yourname) the server files will be created in /home/yourname. Follow these guidelines for ensuring that the server files are generated where you would expect them.
|
Domyślne wartości parametrów
Aktualna, domyślna zawartość pliku server.properties:
#Minecraft server properties #(File Modification Datestamp) max-tick-time=60000 generator-settings= allow-nether=true force-gamemode=false gamemode=0 enable-query=false player-idle-timeout=0 difficulty=1 spawn-monsters=true op-permission-level=4 announce-player-achievements=true pvp=true snooper-enabled=true level-type=DEFAULT hardcore=false enable-command-block=false max-players=20 network-compression-threshold=256 resource-pack-sha1= max-world-size=29999984 server-port=25565 server-ip= spawn-npcs=true allow-flight=false level-name=world view-distance=10 resource-pack= spawn-animals=true white-list=false generate-structures=true online-mode=true max-build-height=256 level-seed= prevent-proxy-connections=false motd=A Minecraft Server enable-rcon=false
Parametry pliku
| Parametr | Typ | Domyślna wartość | Opis |
|---|---|---|---|
| allow-flight | boolean | false | Określa, czy gracze mogą latać w trybie przetrwania, jeżeli posiadają modyfikację pozwalającą na lot. Parametr nie ma wpływu na tryb kreatywny.
|
| allow-nether | boolean | true | Określa, czy portale Netheru mają działać.
|
| announce-player-achievements | boolean | true | Określa, czy gracze mają możliwość zdobywania osiągnięć.
|
| difficulty | integer (0-3) | 1 | Określa poziom trudności panujący na serwerze.
|
| enable-query | boolean | false | Włącza protokół Game4Spy, używany do uzyskania informacji o serwerze. |
| enable-rcon | boolean | false | Włącza zdalny dostęp do konsoli serwera. |
| enable-command-block | boolean | false | Określa, czy bloki poleceń mogą działać. |
| force-gamemode | boolean | false | Nadaje graczom wchodzącym na serwer konieczność posiadania określonego trybu gry.
|
| gamemode | integer (0-3) | 0 | Określa tryb gry.
|
| generate-structures | boolean | true | Określa, czy struktury mogą się pojawiać.
Uwaga: Lochy będą się pojawiały również przy parametrze false. |
| generator-settings | string | blank | Ustawia opcję generatora mapy. |
| hardcore | boolean | false | Jeżeli wartość wynosi true, gracze po śmierci będą mieli tryb zmieniony na widza. Aktywacja tego parametru nie spowoduje zmiany poziomu trudności na Trudny. |
| level-name | string | world | Parametr określa, pod jaką nazwą ma zostać zapisany folder z danymi świata.
|
| level-seed | string | blank | Określa, jakie ziarno generatora ma zostać nadane światu. |
| level-type | string | DEFAULT | Ustawia, jaki typ świata ma zostać wygenerowany.
|
| max-build-height | integer | 256 | Określa maksymalną wysokość, na jakiej możliwe jest budowanie. |
| max-players | integer (0-2147483647) | 20 | Ustawia maksymalną liczbę graczy będących jednocześnie na serwerze.
|
| max-tick-time |
integer (0–(2^63 - 1)) | 60000 | Ustawia maksymalną liczbę ticków jaką może przyjąć serwer bez wyłączenia się. Kiedy liczba ticków zostanie przekroczona, serwer zostanie wyłączony.
|
| max-world-size |
integer (1-29999984) | 29999984 | Określa, jak duży fragment świata jest dostępny dla graczy. Za osią o danej wartości pojawia się granica świata. |
| motd | string | A Minecraft Server | Pozwala na wyświetlanie tekstu pod nazwą serwera w menu serwerów. Uwzględnia formatowanie tekstu i znaki specjalne. Maksymalna liczba znaków w tekście to 59. |
| network-compression-threshold |
integer | 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.
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. |
| online-mode | boolean | true | Server checks connecting players against Minecraft's account database. Only set this to false if your server is not connected to the Internet. Hackers with fake accounts can connect if this is set to false! If minecraft.net is down or inaccessible, no players will be able to connect if this is set to true. Setting this variable to off purposely is called "cracking" a server, and servers that are presently with online mode off are called "cracked" servers, allowing players with unlicensed copies of Minecraft to join.
|
| op-permission-level | integer (1-4) | 4 | Sets the default permission level for ops.
|
| player-idle-timeout | integer | 0 | If non-zero, players are kicked from the server if they are idle for more than that many minutes.
|
| pvp | boolean | true | Enable PvP on the server. Players shooting themselves with arrows will only receive damage if PvP is enabled.
Note: Indirect damage sources spawned by players (such as lava, fire, TNT and to some extent water, sand and gravel) will still deal damage to other players. |
| query.port | integer (1-65534) | 25565 | Sets the port for the query server (see enable-query). |
| rcon.password | string | blank | Sets the password to rcon. |
| rcon.port | integer (1-65534) | 25575 | Sets the port to rcon. |
| resource-pack | string | blank | Optional URI to a resource pack. The player may choose to use it. |
| resource-pack-sha1 |
string | 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. |
| server-ip | string | blank | Set this if you want the server to bind to a particular IP. It is strongly recommended that you leave server-ip blank!
|
| server-port | integer (1-65534) | 25565 | Changes the port the server is hosting (listening) on. This port must be forwarded if the server is hosted in a network using NAT (If you have a home router/firewall). |
| snooper-enabled | boolean | true | Sets whether the server sends snoop data regularly to http://snoop.minecraft.net.
|
| spawn-animals | boolean | true | Determines if animals will be able to spawn.
Tip: if you have major lag, turn this off/set to false. |
| spawn-monsters | boolean | true | Determines if monsters will be spawned.
This setting has no effect if difficulty = 0 (peaceful). If difficulty is not = 0, a monster can still spawn from a Monster Spawner. Tip: if you have major lag, turn this off/set to false. |
| spawn-npcs | boolean | true | Determines whether villagers will be spawned.
|
| spawn-protection | integer | 16 | Determines the radius of the spawn protection. Setting this to 0 will not disable spawn protection. 0 will protect the single block at the spawn point. 1 will protect a 3x3 area centered on the spawn point. 2 will protect 5x5, 3 will protect 7x7, etc. This option is not generated on the first server start and appears when the first player joins. If there are no ops set on the server, the spawn protection will be disabled automatically. |
| use-native-transport | boolean | true | Linux server performance improvements: optimized packet sending/receiving on Linux
|
| view-distance | integer (2-32) | 10 | Sets the amount of world data the server sends the client, measured in chunks in each direction of the player (radius, not diameter). It determines the server-side viewing distance. (see Render distance)
10 is the default/recommended. If you have major lag, reduce this value. |
| white-list | boolean | false | Enables a whitelist on the server.
With a whitelist enabled, users not on the whitelist will be unable to connect. Intended for private servers, such as those for real-life friends or strangers carefully selected via an application process, for example.
Note: Ops are automatically white listed, and there is no need to add them to the whitelist. |
Wartości pliku w wersji Classic
| Key | Type | Default Value | Description |
|---|---|---|---|
| verify-names | boolean | true | If enabled the server will make sure that the client is logged in with the same IP on Minecraft.net. This has caused problems for people trying to play on the same computer they are hosting the server on as the server will see the local IP (127.0.0.1) while Minecraft.net will see the external IP. It is recommended that this is enabled unless you want to play on your server from the same computer you are hosting it on
|
| admin-slot | boolean | false | Allow ops to join even if the server is full. |
| public | boolean | Whether the server should be displayed in the server list, or not.
| |
| server-name | string | The name of the server. This is displayed in the server list and when someone is joining the server
| |
| max-players | integer (0-256) | The max numbers of players that can play on the server at the same time. Note that if more players are on the server it will use more resources. Note also, admin connections are not counted against the max players. | |
| max-connections | integer (1-3) | The max number of connections the server will accept from the same IP.
Note: If you try to set it higher than 3 it will be changed back to 3. | |
| motd | string | MOTD is short for Message of the day, though you do not need to change it every day. The MOTD is displayed when people join the server. | |
| grow-trees | boolean | Whether or not the server will allow planted saplings to grow into trees.
|