EvoEsports / EvoSC-sharp

A Trackmania Server Controller written in C# using .NET 8
https://evosc.io
GNU General Public License v3.0
20 stars 13 forks source link

141 motd #169

Closed DasNeo closed 11 months ago

DasNeo commented 1 year ago

Adds Message of the day that gets shown when a player connects to the server. Two modes, local and remote. On remote a timer fetches the MOTD from a server. If this fails, the timer is stopped. On Local the MOTD is fetched from the local settings.

Commands: /motd - Opens the MOTD Window. - No Permissions /motdedit - Opens the MOTD Editor Window for the local MOTD. Sets the mode to local on save - MotdPermissions.OpenMotdEdit /motdsetinterval int - Sets the interval in which the MOTD is fetched from the server - MotdPermissions.SetFetchInterval /motdseturl "url" - Sets the url from where the MOTD is fetched - MotdPermissions.SetUrl /motdsetlocal "true"|"false" - Sets the mode to local/remote. - MotdPermissions.SetLocal

URL for testing: https://directus.evoesports.de/items/motd?filter[server][_eq]=testserver

TODO:

sonarcloud[bot] commented 12 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication