@xmcl/server-info
v2.0.4
Published
Read Minecraft servers.dat NBT file
Downloads
7
Maintainers
Readme
Server Info Module
Provide function to parse server info (servers.dat)
Usage
Read and Write Server Info
import { readInfo, writeInfo, ServerInfo } from "@xmcl/server-info";
const seversDatBuffer: Buffer; // this is the servers.dat under .minecraft folder
const infos: ServerInfo[] = await readInfo(seversDatBuffer);
const info: ServerInfo = infos[0];
// info.ip -> server ip
// info.name -> server name