mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-29 13:24:26 -05:00
23 lines
630 B
Markdown
23 lines
630 B
Markdown
<div align="center">
|
|
|
|
<img src="../../assets/squadjs-logo.png" alt="Logo" width="500"/>
|
|
|
|
#### SquadJS - Auto Teamkill Warning
|
|
</div>
|
|
|
|
## About
|
|
Automatically sends a warning to players who teamkill to remind them to apologise in all chat.
|
|
|
|
## Installation
|
|
```js
|
|
// Place the following line at the top of your index.js file.
|
|
import { autoTKWarn } from 'plugins';
|
|
|
|
// Place the following lines after all of the above.
|
|
await autoTKWarn(
|
|
server,
|
|
{ // options - the options included below display the defaults and can be removed for simplicity.
|
|
message: 'Please apologise for ALL TKs in ALL chat!' // warning to send
|
|
}
|
|
);
|
|
``` |