Skip to content

Commit 0e07426

Browse files
committed
Add more config options to server template
1 parent 0d951d7 commit 0e07426

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

new/server/templates/main.go.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"os"
55
"strconv"
6+
"time"
67

78
"{{.LibraryURL}}"
89
"{{.ModulePath}}/{{.PackageName}}"
@@ -26,8 +27,14 @@ func main() {
2627
}
2728

2829
server := cg.NewServer("{{.Name}}", cg.ServerConfig{
30+
DisplayName: "{{.Name}}",
31+
Version: "0.1",
32+
Description: "",
33+
RepositoryURL: "",
2934
Port: port,
3035
CGEFilepath: "events.cge",
36+
DeleteInactiveGameDelay: 24 * time.Hour,
37+
KickInactivePlayerDelay: 24 * time.Hour,
3138
})
3239

3340
server.Run(func(cgGame *cg.Game) {

versions.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"server": {
3-
"0.7": "0.3",
4-
"0.8": "0.3"
3+
"0.7": "0.4",
4+
"0.8": "0.4"
55
},
66
"client": {
7-
"0.8": "0.3"
7+
"0.8": "0.4"
88
}
99
}

0 commit comments

Comments
 (0)