Skip to content

Config.default

km127pl edited this page Aug 13, 2023 · 1 revision

Class: default

Config.default

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new default()

Properties

port

port: number = 25565

Defined in

Config.ts:5


shutdownKickReason

shutdownKickReason: string = "Server closed"

Kick reason for when the server is shutting down

Defined in

Config.ts:10

Methods

fromFile

Static fromFile(file): Promise<default>

Get a Config instance from a json file

Parameters

Name Type Description
file string The file to read from

Returns

Promise<default>

a promise that resolves to a Config instance

Defined in

Config.ts:17

Clone this wiki locally