welcome-messages-plugin
v1.0.4
Published
The plugin shows messages in chat when a player connects and disconnects from the server.
Maintainers
Readme
Welcome messages
The plugin shows messages in chat when a player connects and disconnects from the server.
Installation:
npm i welcome-messages-plugin.- Connect the plugin in the
resourcemod.config.jsfile
const {useWelcomeMessages} = require('welcome-messages-plugin')
...
plugins: [useWelcomeMessages(options)],Available options
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| connect | bool | Show a message when a player connects. |
| disconnect | bool | Show a message when a player is disconnected. |
| prefix | string | Prefix in chat before the message. |
An example of how to use the options:
const {useWelcomeMessages} = require('welcome-messages-plugin')
...
plugins: [
useWelcomeMessages({
prefix: "Server >",
connect: true,
disconnect: true
}),
],