-
Notifications
You must be signed in to change notification settings - Fork 23
Message of the Day
Person8880 edited this page Oct 5, 2019
·
9 revisions
Provides a basic message of the day when a player joins your server. Players can accept it to no longer see it which will be saved between sessions.
Players with access to sh_showmotd will not be shown the MotD on connect.
The HTML MotD will look like this (obviously loading your set URL instead):
The default config file should look something like this:
{
"URL": "http://www.unknownworlds.com/ns2/",
"Mode": "TEXT_ONLY",
"Delay": 5,
"MessageText": [ "Welcome to my awesome server!", "Admins can be reached @ mywebsite.com", "Have a pleasant stay!" ],
"MessageColour": [ 255, 255, 255 ],
"Accepted": {
"123456": true
},
"__Version": "1.3"
}
The file should be called "MotD.json" and should be placed in the directory defined as your plugin config directory (default is config://shine/plugins).
The MotD plugin has three modes available:
- Text based only (
TEXT_ONLY
). Shows your set messages to players that join. - Web page only (
WEBPAGE_ONLY
). Opens your set web page when players join. - Hybrid (
TEXT_ON_CONNECT
). Shows your set messages to players that join, but opens your set web page when they open the MotD from the vote menu or using !motd.
Option | Description |
---|---|
Mode | Choose one of the modes above. |
URL | If Mode is set to 2, this is the URL that will be loaded as the MotD. |
MessageText | Contains the lines of text you wish to display to the client. This should not exceed 5 lines, otherwise some of it may be cut off. |
MessageColour | Sets the colour of the MOTD text. Values are R, G, B colours, between 0 and 255. |
Accepted | A list of all players that have accepted the MotD. You can manually add players to it if you want. |
Delay | The time in seconds to wait after a player connects before showing them the MotD. |
Command | Chat Command | Arguments | Description |
---|---|---|---|
sh_motd | !motd | N/A | Shows the MotD to yourself. |
sh_acceptmotd | !acceptmotd | N/A | Accepts the MotD so you no longer get shown it on join. |
sh_showmotd | !showmotd | <player> | Shows the MotD to the given player. |