{{exclusive|java}} {{lowercase title}} The '''servers.dat''' is used to store information regarding the [[multiplayer]] [[servers]] that the player has added to their [[server list]]. It does not store the direct connect IP address (see [[options.txt]]), nor any LAN server information. It is stored as an uncompressed [[NBT Format|NBT]] file. It is possible to add color codes by editing the server name attribute with an [[NBT Format|NBT Editor]] through the use of [[formatting codes]]. The file is located in the root of the directory specified in the [[launcher]] profile. By default, this would be ''[[.minecraft]]\servers.dat''. == NBT Structure ==
* {{nbt|compound}} The root tag. ** {{nbt|list|servers}}: List of compound tags, one for each saved server. *** {{nbt|compound}} Information about the server. **** {{nbt|string|icon}}: Base64-encoded PNG data of the server icon. **** {{nbt|string|ip}}: The IP address of the server. **** {{nbt|string|name}}: The name of the server as defined by the player. **** {{nbt|byte|acceptTextures}}: 1 or 0 (true/false) - 0 if the player has selected ''Never'' when prompted to install a server [[resource pack]].
== History == {{HistoryTable |{{HistoryLine|java beta}} |{{HistoryLine||1.8|dev=Pre-release|Added server.dat, include tag ip and name, for saving server address and its name.}} |{{HistoryLine|java}} |{{HistoryLine||1.4.2|dev=12w42a|Added hideAddress tag, for the client shows the address or not in the server list.}} |{{HistoryLine||1.7.2|dev=13w41a|Added icon tag, for saving server icon cache.}} |{{HistoryLine||1.7.6|dev=pre1|Added acceptTextures tag, for the client to select a default action to a server resource pack. |Removed hideAddress tag.}} |{{HistoryLine||1.8|dev=14w17a|Added acceptTextures tag, for the client to select a default action to a server resource pack. |Removed hideAddress tag.}} }} == Navigation == {{Navbox Java Edition technical|general}} [[Category:Development]] [[de:Servers Format]] [[fr:Format servers.dat]] [[ja:servers.datフォーマット]] [[nl:Servers.dat formaat]] [[pt:Formato servers.dat]] [[zh:Servers.dat格式]]