Skip to content

Commit

Permalink
feat: noWarpsLoad: setting to disable warps loading
Browse files Browse the repository at this point in the history
zardoy committed Sep 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 9dccf8f commit 8f827a1
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/modules/warps.ts
Original file line number Diff line number Diff line change
@@ -50,9 +50,9 @@ const loadWarps = async (warpsFolder: string, serv: Server) => {
export const server = async function (serv: Server, options: Options) {
serv.warps = []

const { worldFolder } = options
const { worldFolder, noWarpsLoad } = options
let warpsFolder = ''
if (worldFolder) {
if (worldFolder && !noWarpsLoad) {
warpsFolder = path.join(worldFolder, 'Warp files')
loadWarps(warpsFolder, serv)
}
1 change: 1 addition & 0 deletions src/modules.ts
Original file line number Diff line number Diff line change
@@ -63,6 +63,7 @@ declare global {
motd?: string
port?: number
noInitialChunksSend?: boolean
noWarpsLoad?: boolean
"max-players"?: number
"online-mode"?: boolean
logging?: boolean

0 comments on commit 8f827a1

Please sign in to comment.