Discord Integration
The Motels plugin offers Discord integration, allowing you to send notifications about various motel-related events to your Discord server using webhooks.
Configuration
To set up the Discord integration, you need to configure the discord-hook
section in your config.yml
file. Here's a breakdown of the configuration options:
General Settings
enabled
: Set totrue
to enable Discord integration, orfalse
to disable it.
Event Configurations
For each event type, you can configure the following settings:
webhook-url
: The Discord webhook URL for this specific event.enabled
: Set totrue
to enable notifications for this event, orfalse
to disable them.title
: The title of the Discord embed.subtitle
: The subtitle or field name in the Discord embed.msg
: The main message content of the embed.
Available Events
1. Motel Purchase
2. Motel Sale
3. Motel Expiration
4. Rent Extension
5. Expired Vault Access
6. Vault Access
Placeholders
Each event type supports specific placeholders that will be replaced with actual values when the notification is sent:
%buyer%
: The name of the player buying a motel%seller%
: The name of the player selling a motel%owner%
: The name of the motel owner%region%
: The motel region or ID%price%
: The price of the motel%date%
: The expiration or extension date%player%
: The name of the player accessing a vault%action%
: The action performed (e.g., "Open" or "Close")%motelid%
: The ID of the motel%vaultnumber%
: The number of the vault%contents%
: The contents of the vault
Note on Vault Contents
When logging vault access, the plugin will format the list of items in the vault. Each item will be listed with its name (or type if no custom name) and quantity. For expired vaults, all formatting will be stripped from item names.
Remember to replace "webhookurl"
with your actual Discord webhook URLs for each event you want to enable.
Last updated