* vanilla server launcher * update package.json * re-add babel to fix standard * fix ci * add buffer-equal * simple fixes * add offline client support * fix closing bugs, proper wait for server start * add test to mocha * change test timeout to 2 min * increase timeouts Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
23 lines
772 B
JavaScript
23 lines
772 B
JavaScript
// Minimum supported version (< will be kicked)
|
|
const MIN_VERSION = '1.16.201'
|
|
// Currently supported verson
|
|
const CURRENT_VERSION = '1.16.201'
|
|
|
|
const defaultOptions = {
|
|
// https://minecraft.gamepedia.com/Protocol_version#Bedrock_Edition_2
|
|
version: CURRENT_VERSION,
|
|
// client: If we should send SetPlayerInitialized to the server after getting play_status spawn.
|
|
// if this is disabled, no 'spawn' event will be emitted, you should manually set
|
|
// client.status to ClientStatus.Initialized after sending the init packet.
|
|
autoInitPlayer: true,
|
|
// If true, do not authenticate with Xbox Live
|
|
offline: false
|
|
}
|
|
|
|
const Versions = {
|
|
// TODO
|
|
// '1.16.210': 428,
|
|
'1.16.201': 422
|
|
}
|
|
|
|
module.exports = { defaultOptions, MIN_VERSION, CURRENT_VERSION, Versions }
|