Użytkownik:Vatharannen/brudnopis: Różnice pomiędzy wersjami

Z Minecraft Wiki Polska
Przejdź do nawigacji Przejdź do wyszukiwania
dNie podano opisu zmian
 
(Nie pokazano 29 wersji utworzonych przez 4 użytkowników)
Linia 1: Linia 1:
{{Budowa}}
<noinclude>{{Budowa}}</noinclude>
 
{{#invoke: Sprite | link
Jesteś teraz na stronie brudnopisu użytkownika [[Użytkownik:VaderVCD|VaderVCD]]. Możesz przejrzeć moje zapiski.
| data = BiomeSprite
 
}}
Jeśli ta strona jest pusta, to znaczy, że aktualnie nie pracuję nad większą edycją/nową stroną.
 
=server.properties=
{{lowercase}}
[[File:Server.properties.png|thumb|The default server.properties file.]]
 
'''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 ==
 
'''Plik server.properties jest tworzony automatycznie po uruchomieniu oprogramowania serwera.'''
 
{| class="wikitable" data-description="File location"
|-
! System
! Lokalizacja pliku
! Uwagi
|-
! Windows
| Taka sama jak lokalizacja pliku minecraft_server.exe
|
|-
! Linux
Unix
<span>Unix/Mac</span>
| 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.
* Set aside an entire directory for all of the server files. (''Things could get messy if you don't'').
** Place your minecraft_server.jar here.
* Use the [[Media:Minecraft server template.txt]] script as a guideline for setting up a startup script for your Minecraft server.
** Make sure it's in your executable $PATH
** Be sure to add the execution permission to the startup script (chmod +x file_name, or use a folder manager)
*** '''minecraft_server(.sh)'''
|}
 
== Domyślne wartości parametrów ==
Aktualna, domyślna zawartość pliku server.properties:
<pre>
#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
</pre>
 
== Parametry pliku ==
 
{| class="wikitable" data-description="Server properties"
|-
! <span style="white-space:nowrap;">Parametr</span>
! Typ
! Domyślna wartość
! Opis
 
|-
! <span style="white-space:nowrap;">'''allow-flight'''</span>
| boolean
| false
| {{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.
:'''true''' - Latanie w trybie przetrwania jest dostępne, jeśli gracz posiada odpowiednią modyfikację.
 
|-
! <span style="white-space:nowrap;">'''allow-nether'''</span>
| boolean
| true
| {{Anchor|allow-nether}}Określa, czy portale Netheru mają działać.
:'''false''' - Portale Netheru nie będą działać.
:'''true''' - Serwer zezwala Portalom Netheru na przenoszenie graczy.
 
|-
! <span style="white-space:nowrap;">'''announce-player-achievements'''</span>
| boolean
| true
| {{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>
| integer (0-3)
| 1
| {{Anchor|difficulty}}Określa poziom trudności panujący na serwerze.
:'''0''' - Pokojowy
:'''1''' - Łatwy
:'''2''' - Normalny
:'''3''' - Trudny
 
|-
! <span style="white-space:nowrap;">'''enable-query'''</span>
| boolean
| false
| {{Anchor|enable-query}}Włącza protokół Game4Spy, używany do uzyskania informacji o serwerze.
 
|-
! <span style="white-space:nowrap;">'''enable-rcon'''</span>
| boolean
| false
| {{Anchor|enable-rcon}}Włącza zdalny dostęp do konsoli serwera.
 
|-
! <span style="white-space:nowrap;">'''enable-command-block'''</span>
| boolean
| false
| {{Anchor|enable-command-block}}Określa, czy bloki poleceń mogą działać.
 
|-
! <span style="white-space:nowrap;">'''force-gamemode'''</span>
| boolean
| false
| {{Anchor|force-gamemode}}Nadaje graczom wchodzącym na serwer konieczność posiadania określonego trybu gry.
:'''false''' - Gracz po ponownym wejściu na serwer posiada taki sam tryb, jak przed ostatnim jego opuszczeniem.
:'''true''' - Gracz zawsze po ponownym wejściu będzie posiadał określony tryb gry.
 
|-
! <span style="white-space:nowrap;">'''gamemode'''</span>
| integer (0-3)
| 0
| {{Anchor|gamemode}}Określa tryb gry.
:'''0''' - Przetrwanie
:'''1''' - Kreatywny
:'''2''' - Przygodowy
:'''3''' - Widz
 
|-
! <span style="white-space:nowrap;">'''generate-structures'''</span>
| boolean
| true
| {{Anchor|generate-structures}}Określa, czy struktury mogą się pojawiać.
:'''false''' - Struktury nie będą pojawiały się w nowych chunkach.
:'''true''' - Struktury będą generowane.
'''Uwaga:''' ''Lochy będą się pojawiały również przy parametrze false.''
 
|-
! <span style="white-space:nowrap;">'''generator-settings'''</span>
| string
| ''blank''
| {{Anchor|generator-settings}}Ustawia opcję generatora mapy.
 
|-
! <span style="white-space:nowrap;">'''hardcore'''</span>
| boolean
| false
| {{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.
 
|-
! <span style="white-space:nowrap;">'''level-name'''</span>
| string
| world
| {{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.
 
|-
! <span style="white-space:nowrap;">'''level-seed'''</span>
| string
| ''blank''
| {{Anchor|level-seed}}Określa, jakie ziarno generatora ma zostać nadane światu.
 
|-
! <span style="white-space:nowrap;">'''level-type'''</span>
| string
| DEFAULT
| {{Anchor|level-type}}Ustawia, jaki typ świata ma zostać wygenerowany.
:'''DEFAULT''' - Świat standardowy.
:'''FLAT''' - Świat superpłaski, bez opcji generowania struktur.
:'''LARGEBIOMES''' - Świat bliźniaczy do domyślnego, lecz biomy są kilkukrotnie większe.
:'''AMPLIFIED''' - Świat domyślny ze zmienionym limitem maksymalnej wysokości budowania.
:'''CUSTOMIZED''' - Świat dostosowany do ustawień generatora z parametru ''generator-settings''.
 
|-
! <span style="white-space:nowrap;">'''max-build-height'''</span>
| integer
| 256
| {{Anchor|max-build-height}}Określa maksymalną wysokość, na jakiej możliwe jest budowanie.
 
|-
! <span style="white-space:nowrap;">'''max-players'''</span>
| integer (0-2147483647)
| 20
| {{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.
 
|-
! <span style="white-space: nowrap;">'''max-tick-time'''</span><br />
| integer (0–(2^63 - 1))
| 60000
| {{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''' - wyłącz opcję (opcja dodana w 14w32a)
 
|-
! <span style="white-space:nowrap;">'''max-world-size'''</span><br />
| integer (1-29999984)
| 29999984
| {{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>
| string
| ''A Minecraft Server''
| {{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.
 
|-
! <span style="white-space:nowrap;">'''network-compression-threshold'''</span><br />
| integer
| 256
| {{Anchor|network-compression-threshold}}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.''
 
|-
! <span style="white-space:nowrap;">'''online-mode'''</span>
| boolean
| true
| {{Anchor|online-mode}}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.
:'''true''' - Enabled. The server will assume it has an Internet connection and check every connecting player.
:'''false''' - Disabled. The server will not attempt to check connecting players.
 
|-
! <span style="white-space:nowrap;">'''op-permission-level'''</span>
| integer (1-4)
| 4
| {{Anchor|op-permission-level}}Sets the default permission level for ops.
:'''1''' - Ops can bypass spawn protection.
:'''2''' - Ops can use /clear, /difficulty, /effect, /gamemode, /gamerule, /give, and /tp, and can edit command blocks.
:'''3''' - Ops can use /ban, /deop, /kick, and /op.
:'''4''' - Ops can use /stop.
 
|-
! <span style="white-space:nowrap;">'''player-idle-timeout'''</span>
| integer
| 0
| {{Anchor|player-idle-timeout}}If non-zero, players are kicked from the server if they are idle for more than that many minutes.
:'''Note:''' ''Idle time is reset when the server receives one of the following packets:''
:* [http://wiki.vg/Protocol#Click_Window Click Window]
:* [http://wiki.vg/Protocol#Enchant_Item Enchant Item]
:* [http://wiki.vg/Protocol#Update_Sign Update Sign]
:* [http://wiki.vg/Protocol#Player_Digging Player Digging]
:* [http://wiki.vg/Protocol#Player_Block_Placement Player Block Placement]
:* [http://wiki.vg/Protocol#Held_Item_Change_.28serverbound.29 Held Item Change]
:* [http://wiki.vg/Protocol#Animation_.28serverbound.29 Animation] (swing arm)
:* [http://wiki.vg/Protocol#Entity_Action Entity Action]
:* [http://wiki.vg/Protocol#Client_Status Client Status]
:* [http://wiki.vg/Protocol#Chat_Message_.28serverbound.29 Chat Message]
:* [http://wiki.vg/Protocol#Use_Entity Use Entity]
 
|-
! <span style="white-space:nowrap;">'''pvp'''</span>
| boolean
| true
| {{Anchor|pvp}}Enable PvP on the server. Players shooting themselves with arrows will only receive damage if PvP is enabled.
:'''true''' - Players will be able to kill each other.
:'''false''' - Players cannot kill other players (also known as '''Player versus Environment''' ('''PvE''')).
'''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.''
 
|-
! <span style="white-space:nowrap;">'''query.port'''</span>
| integer (1-65534)
| 25565
| {{Anchor|query.port}}Sets the port for the query server (see '''enable-query''').
 
|-
! <span style="white-space:nowrap;">'''rcon.password'''</span>
| string
| ''blank''
| {{Anchor|rcon.password}}Sets the password to rcon.
 
|-
! <span style="white-space:nowrap;">'''rcon.port'''</span>
| integer (1-65534)
| 25575
| {{Anchor|rcon.port}}Sets the port to rcon.
 
|-
! <span style="white-space:nowrap;">'''resource-pack'''</span>
| string
| ''blank''
| {{Anchor|resource-pack}}Optional URI to a [[resource pack]]. The player may choose to use it.
 
|-
! <span style="white-space:nowrap;">'''resource-pack-sha1'''</span><br />
| string
| ''blank''
| {{Anchor|resource-pack-hash}}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.
 
|-
! <span style="white-space:nowrap;">'''server-ip'''</span>
| string
| ''blank''
| {{Anchor|server-ip}}Set this if you want the server to bind to a particular IP.  It is strongly recommended that you leave server-ip blank!
:Set to blank, or the IP you want your server to run (listen) on.
 
|-
! <span style="white-space:nowrap;">'''server-port'''</span>
| integer (1-65534)
| 25565
| {{Anchor|server-port}}Changes the port the server is hosting (listening) on. This port must be [[wikipedia:Port forwarding|forwarded]] if the server is hosted in a network using [[wikipedia:Network address translation|NAT]] (If you have a home router/firewall).
 
|-
! <span style="white-space:nowrap;">'''snooper-enabled'''</span>
| boolean
| true
| {{Anchor|snooper-enabled}}Sets whether the server sends snoop data regularly to http://snoop.minecraft.net.
:'''false''' - disable snooping.
:'''true''' - enable snooping.
 
|-
! <span style="white-space:nowrap;">'''spawn-animals'''</span>
| boolean
| true
| {{Anchor|spawn-animals}}Determines if [[animal]]s will be able to spawn.
:'''true''' - Animals spawn as normal.
:'''false''' - Animals will immediately vanish.
''Tip: if you have major lag, turn this off/set to false.''
 
|-
! <span style="white-space:nowrap;">'''spawn-monsters'''</span>
| boolean
| true
| {{Anchor|spawn-monsters}}Determines if monsters will be spawned.
:'''true''' - Enabled. Monsters will appear at night and in the dark.
:'''false''' - Disabled. No monsters.
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.''
 
|-
! <span style="white-space:nowrap;">'''spawn-npcs'''</span>
| boolean
| true
| {{Anchor|spawn-npcs}}Determines whether villagers will be spawned.
:'''true''' - Enabled. Villagers will spawn.
:'''false''' - Disabled. No villagers.
 
|-
! <span style="white-space:nowrap;">'''spawn-protection'''</span>
| integer
| 16
| {{Anchor|spawn-protection}}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 [[Operator|ops]] set on the server, the spawn protection will be disabled automatically.
 
|-
! <span style="white-space:nowrap;">'''use-native-transport'''</span>
| boolean
| true
| {{Anchor|use-native-transport}}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
|-
! <span style="white-space:nowrap;">'''view-distance'''</span>
| integer (2-32)
| 10
| {{Anchor|view-distance}}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 [[Frame rate#Render_distance|Render distance]])
''10 is the default/recommended. If you have major lag, reduce this value.''
 
|-
! <span style="white-space:nowrap;">'''white-list'''</span>
| boolean
| false
| {{Anchor|white-list}}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.
:'''false''' - No white list is used.
:'''true''' - The file whitelist.json is used to generate the white list.
'''Note:''' ''Ops are automatically white listed, and there is no need to add them to the whitelist.''
|}
 
== Wartości pliku w wersji Classic ==
 
{| class="wikitable" data-description="Server properties"
|-
! <span style="white-space:nowrap;">Key</span>
! Type
! Default Value
! Description
|-
 
! <span style="white-space:nowrap;">verify-names</span><!-- This is a guess -->
| 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
:'''true''' - Enabled. The server will check all names with Minecraft.net
:'''false''' - Disabled. The server will make sure the IP matches
 
|-
! <span style="white-space:nowrap;">admin-slot</span>
| boolean
| false
| Allow ops to join even if the server is full.
 
|-
! <span style="white-space:nowrap;">public</span>
| boolean
|
| Whether the server should be displayed in the server list, or not.
:'''true''' - The server will be displayed in the server list - anyone can see it.
:'''false''' - Only people with the URL which can be found in externalurl.txt and people who know the IP and port can join the server
 
|-
! <span style="white-space:nowrap;">server-name</span>
| string
|
| The name of the server. This is displayed in the server list and when someone is joining the server
* A single line of text. Characters such as ' (apostrophe) may need to be escaped by adding a backslash before them.
 
|-
! <span style="white-space:nowrap;">max-players</span>
| 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.
 
|-
! <span style="white-space:nowrap;">max-connections</span>
| 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.''
 
|-
! <span style="white-space:nowrap;">motd</span>
| 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.
|-
 
! <span style="white-space:nowrap;">grow-trees</span>
| boolean
|
| Whether or not the server will allow planted saplings to grow into trees.
:'''true''' - the server will allow saplings to grow into trees.
:'''false''' - the server will not allow saplings to grow into trees.
|}
 
{{minecraft}}
 
[[Category:Server]]
 
[[de:Server.properties]]
[[es:Server.properties]]
[[fr:Server.properties]]
[[ko:Server.properties]]
[[nl:Server.properties]]
[[zh:Server.properties]]

Aktualna wersja na dzień 14:22, 25 lip 2020

Artykuł w budowie!
Trwa budowa strony Vatharannen/brudnopis. Jeśli chcesz, możesz pomóc przy jej tworzeniu.


Błąd Lua w module „Moduł:Sprite”, w linii 126: attempt to concatenate local 'name' (a nil value).