Garry's Mod

Garry's Mod

评价数不足
Server MOTD Support
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
文件大小
发表于
更新日期
4.534 KB
2020 年 4 月 16 日 下午 8:35
2020 年 4 月 30 日 下午 7:30
2 项改动说明 ( 查看 )

订阅以下载
Server MOTD Support

在 wesl-ee 的 4 个合集中
Shelter GMod
90 件物品
Shelter ttt
19 件物品
Weekly Nightclub & TTT "Club Howler"
56 件物品
GYW Streamstage
12 件物品
描述
Message of the Day Support (Servers)

This add-on enables a custom "message of the day" to be displayed to users upon connecting to the server. The MOTD should be an HTML or text file placed in cfg/motd.txt up to one megabyte in size. Files over one megabyte are not guaranteed to be rendered correctly by the client. This supports resolutions down to 640x480 so expect it to work even if you're running GMod on your toaster.

Using the MOTD

Download this add-on from the Steam Workshop and write a MOTD (or copy one of the thousand examples out there) and place it in cfg/motd.txt. You should only really use this if you run a server; there are no dependencies for this add-on and it is entirely self-contained, no need to write a website or host a webpage just to display your MOTD.

Below is an example of an HTML message of the day:

<!DOCTYPE HTML> <html> <head><style> body { font-family: "Meiryo", "MS PGothic", "sans-serif"; color: white } h1, h2 { font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif } </style><head> <body> <h1>Welcome to the server!</h1> <p>This is the default MOTD; if you are the server op then you probably want to change this by creating a file at <code>cfg/motd.txt</code> and putting your own text or HTML MOTD. Here are some things you should probably include: <ul> <li>Name of the server</li> <li>Basic rules</li> <li>Overview / explanation of the gamemode (if uncommon)</li> <li>Names / e-mails of admins who can help</li> <li>Link to an official website (if applicable)</li> </ul> <p>Other than that, you're free to do whatever you want however you want; hell, you can even run Javascript in here. The code isn't licensed so you can do anything just don't re-upload it without permission kthnx. If you're using this add-on and like it (or want to request a feature!) send me an e-mail (yumi@prettyboytellem.com) or you can message me via Steam</p> <p>This project is also hosted on so you can browse the source freely and raise an issue / contribute a fix if you find any bugs!</p> </body> </html>

Contributing / Source code

All development of this add-on is done on the Github page for this project[github.com] so all issues / feature requests should be submitted there by creating a new issue. Pull requests are respected and are actually very helpful in developing / maintaining this project.