NidToolbox: MOTD module 1.7.0

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


NEW - if you would like to have your server logo appear in the notifications area in messages that come from NidToolbox. Please join my Discord https://discord.nidaren.net/ and post them in #server-logos channel.


Support is provided as well as suggestions are accepted on my Discord here


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


How to install:

  1. Unpack .zip archive
  2. Copy nid-motd.dll to Mods\NidToolbox\Modules


Settings files:

Config files are located at Configs\Mods\NidToolbox\


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.7.0

    Compatibility with Eco 9.7

  • Version 1.6.0

    * Updated module to Eco version 9.6.0


    * Updated to net6.


    * Fixed bug where some of the settings, like window title, would not be taken into account until relog. Thanks for reporting Extraterrestrial.


    * REQUIRES: EM-Framework 3.3.0-beta2 or higher

  • Version 1.5.1a

    • Changed OpenCustomPanel to OpenInfoPanel method, as the former seems to trigger "Failed to handle RPC method" on clients.
  • Version 1.5.1

    • Changed OpenCustomPanel to OpenInfoPanel method, as the former seems to trigger "Failed to handle RPC method" on clients.
  • Version 1.5.0

    * (RC.2) Module output filename updated to match namespace.


    * Module updated to Eco 9.5.0


    * REQUIRES: EM-Framework 3.2.0-RC.3 or higher.

  • Version 1.1.2

    Version 1.1.2

    • Compatibility patch with EM Framework 3.1.0
    • Requires EM Framework 3.1.0
  • Version 1.1

    Version 1.1

    • Migrated project to Net5.
    • Compatibility patch with Eco version 9.4
  • 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