NidToolbox: MOTD module 1.0.1

Due to human (non-bot) spam the first contribution of a user has to be reviewed and activated manually, all further contributions do not require this.
As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.

Displays welcome message to players logging in, accepts all Eco's formatting. Stores MOTD in a text file for easy edits. Managed from command line and/or config files.

MOTD module

for NidToolbox Light

requries nid-core module available here


1586-default-violet-2-png



Brings back "Welcome Message" known from the old NidToolbox, to brighten every user login event :)

MOTD module offers:

  • Highly customisable welcome message functionality.
  • Can be governed by config files and/or from within the game via commands.
  • Easy reloads, without the need of a server restart.
  • Possibility to show MOTD as popup, chat message or both.
  • Server owner controls both the title of the message (the "brackets tag") as well as the title window.
  • Config file as well as the default message are generated on startup of the plugin.

Requirements:


As any module of NidToolbox set, it requires nid-core version 1.0.1+ module, available in the main forum thread: here


Settings files:

Config files are located at Mods\NidToolbox\Configs\


Motd.json - stores configuration options of the plugin.

MotdMessage.txt - stores actual MOTD message. It accepts all usual Eco's formatting tags .i.e <b> <u> <color> or even icons.


See below for examples.


Motd.json

Code
{
"Info1": "NidToolbox Light: MOTD settings.",
"MotdEnabled": true,
"ShowAsPopUp": false,
"ShowInChat": true,
"WindowTitle": "MOTD"
}


MotdMessage.txt

Code
<size=42><color=yellow><b>Welcome to our Server</b></color></size>
Please make sure you familiarized yourself with our rules.
Have fun!
<i>Server admins</i>


Available commands:


/help nidMotd

Displays information about all commands contained within this module.


/nidmotd-reload

Reloads MOTD message from the MotdMessage.txt file.

/nidmotd-reload

Code
/nidmotd-reload


/nidmotd-show

Shows current MOTD message.

/nidmotd-show

Code
/nidmotd-show


/nidmotd-enable

Sets the whole module to enabled or disabled state

/nidmotd-enable bool trueFalse

Code
/nidmotd-enable true/false


/nidmotd-chat

Enables or disables of displaying the MOTD in chat.

/nidmotd-chat bool trueFalse

Code
/nidmotd-chat true/false



/nidmotd-popup

Enables or disables of displaying the MOTD as pop-up window.

/nidmotd-popup bool trueFalse

Code
/nidmotd-popup true/false


/nidmotd-title

Sets title of both the bracket's tag as well as the MOTD Popup window (if enabled).

/nidmotd-title string someTitle

Code
/nidmotd-title Welcome
  • Version 1.0.1

    Version 1.0.1:

    • Release version and immediately updated to 1.0.1 to remove conflicting command namespace "motd" also used in elixir motd plugin.
  • Version 1.0.0