UNPKG

observermc

Version:

A Node.js wrapper and API for multiple Minecraft Servers

22 lines (21 loc) 687 B
export declare class MinecraftServerProperties { private _path; private _properties; constructor(directory: string); /** * Gets a value. * @param {string} key Key of the value. * @return {*} {(string | boolean | number)} Parsed value. */ get(key: string): string | boolean | number; /** * Sets a value and saves the server.properties file. * @param {string} key Key of the value. * @param {(string | boolean | number)} value The value. */ set(key: string, value: string | boolean | number): boolean; private save; get object(): { [key: string]: string | number | boolean; }; }