== Short description ==
With this plugin, you can configure your own messages, which are sent to the chat in a specific interval. Furthermore messages can be shown at specific times/days.
== Configurationoverview ==
[code=js,'configs/plugins/automessages.json']{
"automessages": {
"enabled": true,
"interval": 120,
"logging": true,
"messages": [
"^5This Server is running ^4GSManager ^5, visit our Website at: ^4www.GSManager.de",
"^5The next Map is: ^4 ^5(^4^5){{br}}^5Die nächste Karte ist: ^4 ^5(^4^5)"
],
"cron": [
["0 0 * * *", "^5Mitternacht!{{br}}^5Midnight!"]
]
}
}[/code]
== Detailed configurationvariables ==
The configurationfile of the "[lexicon]automessages[/lexicon]" function is located in the configs/plugins directory and is named banner.json. An explanation of the variables follows:
[table]
[tr]
[td][size=12][b][u]Variable[/u][/b][/size][/td]
[td][size=12][b][u]Allowed Values[/u][/b][/size][/td]
[td][size=12][b][u]Description[/u][/b][/size][/td]
[/tr]
[tr]
[td][size=10][tt]enabled[/tt][/size][/td]
[td][size=10][tt]true[/tt][tt]false[/tt][/size][/td]
[td][size=10]You can (de)active the plugin with this variable.[/size][/td]
[/tr]
[tr]
[td][size=10][tt]interval[/tt][/size][/td]
[td][size=10][tt]number[/tt][/size][/td]
[td][size=10]This variable defines the interval between two sent messages in seconds.[/size][/td]
[/tr]
[tr]
[td][size=10][tt]logging[/tt][/size][/td]
[td][size=10][tt]true[/tt][tt]false[/tt][/size][/td]
[td][size=10]This variable defines if the [lexicon]automessages[/lexicon] should be logged in the daemon.log[/size][/td]
[/tr]
[tr]
[td][size=10][tt]messages[/tt][/size][/td]
[td][size=10][tt]Text[/tt][/size][/td]
[td][size=10]This variable defines the messages, which should be send to the chat.[/size][/td]
[/tr]
[tr]
[td][size=10][tt]cron[/tt][/size][/td]
[td][size=10][tt]Array with arrays of two strings each[/tt][/size][/td]
[td][size=10]First entry of each array is a [url=https://en.wikipedia.org/wiki/Cron]unix cron time string[/url], second is the message.[/size][/td]
[/tr]
[/table]
You can use the following placeholders in your messages:
[table]
[tr]
[td]Platzhalter[/td]
[td]Beschreibung[/td]
[/tr]
[tr]
[td]{{br}}[/td]
[td]Will be replaced with a wordwrap.[/td]
[/tr]
[tr]
[td][/td]
[td]Will be replaced with the next map.[/td]
[/tr]
[tr]
[td][/td]
[td]Will be replaced with the next gametype.[/td]
[/tr]
[tr]
[td][/td]
[td]Will be replaced with the current running GSManager[/td]
[/tr]
[tr]
[td][/td]
[td]Will be replaced with the time in german time format.[/td]
[/tr]
[tr]
[td][/td]
[td]Will be replaced with the time in english time format.[/td]
[/tr]
[tr]
[td][/td]
[td]Will be replaced with the date in form date time month year (01 Oct 2014).[/td]
[/tr]
[tr]
[td]
Sie betrachten gerade eine ältere Version des Eintrags. Klicken Sie hier, um zur aktuellen Version zu gelangen.