NearW / minecraft-speedrun

Server configuration for a speedrun server
8 stars 1 forks source link

server.js doesn't work? #8

Closed MiniDuncan closed 3 years ago

MiniDuncan commented 3 years ago

when i run start.bat, it comes up with: C:\Users\archi\Downloads\Co-Op Speedrun>node server.js Parsing speedrun.json ... SyntaxError: Unexpected string in JSON at position 121 at JSON.parse () at C:\Users\archi\Downloads\Co-Op Speedrun\server.js:1:68523 at Generator.next () at s (C:\Users\archi\Downloads\Co-Op Speedrun\server.js:1:67108)

What can i do to fix it?

NearW commented 3 years ago

The error implies, that your speedrun.json is not written correctly.

Either google how the json format works or paste your speedrun.json below and I'll spot your small error! :) or validate your json here

MiniDuncan commented 3 years ago

{ "MIN_RAM": 8, "MAX_RAM": 10, "OP": ["MiniDuncan"], "WHITELIST": ["MiniDuncan"], "DATA_PACK": false, "SEEDS": [] "AUTO_SAVE": false, "KEEP_WORLDS": true, "LOAD_WORLD": "world" }

NearW commented 3 years ago

Missing , after "SEEDS": [].

Correct:

{
    "MIN_RAM": 8,
    "MAX_RAM": 10,
    "OP": ["MiniDuncan"],
    "WHITELIST": ["MiniDuncan"],
    "DATA_PACK": false,
    "SEEDS": [],
    "AUTO_SAVE": false,
    "KEEP_WORLDS": true,
    "LOAD_WORLD": "world"
}