-
-
Notifications
You must be signed in to change notification settings - Fork 72
Server Name Template Examples
Callum Jones edited this page Oct 4, 2019
·
3 revisions
Server name templates make use of golang's templating language.
{{ .ServerName }} - {{ .EventName }}
{{ .ServerName }} | {{ .EventName }}
You can use any of the elements inside the CurrentRaceConfig struct and the GlobalServerConfig struct (click the links for details).
For example:
{{ .Track }} {{ with .TrackLayout }}({{ . }}){{ end }} - an event hosted by {{ .ServerName }}
Would show the following for an event at laguna seca:
ks_laguna_seca - an event hosted by Assetto Server Manager
Another example is:
{{ .ServerName }} - {{ .EventName }} {{ if eq .RaceExtraLap 1 }}This server will force you to drive another lap at the end of the race!{{ end }}