Skip to content

Commit

Permalink
feat(modding): add config.backend.welcomeText
Browse files Browse the repository at this point in the history
  • Loading branch information
artch committed Nov 10, 2016
1 parent 360e60b commit 92eb291
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/game/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const PROTOCOL = 12;
var useNativeAuth;

Object.assign(config.backend, {
welcomeText: `<h4>Welcome to your own Screeps private server!</h4>This text can be changed by adding a mod to your server, see <code>mods.json</code> file in your server folder.`,
router: express.Router(),
onExpressPreConfig(app) {},
onExpressPostConfig(app) {},
Expand All @@ -41,6 +42,7 @@ Object.assign(config.backend, {

function getServerData() {
return {
welcomeText: config.backend.welcomeText,
customObjectTypes: config.backend.customObjectTypes
}
}
Expand Down

0 comments on commit 92eb291

Please sign in to comment.