Go to Discord Developer Portal.
Click on the "New application" button.
Enter a name and check the box.
Enable the following functions as shown below.
Copy the link and paste it into your browser, then invite the bot to your server.
Congratulations! You have created your first application!
When you first install the plugin, it will automatically download the plugin called STN Studios API - Addon.jar.
• Let's go to the BOT section.
• Click on Reset Token and follow the steps below.
• Copy the token.
• Openplugins/STN-Studios-API/config.yml
and paste the token in the TOKEN section: 'YOUR_ACCESS_TOKEN'.
Restart your server.
If you have followed the above steps but want to use DiscordSRV, follow these steps.
plugins/DeluxeAnnounce/token.yml
.Set the API section as
API: 'DISCORD-SRV'
.
Start your server and the plugin will download automatically.
• Let's go to the BOT section.
• Click on Reset Token and follow the steps below.
• Copy the token.
• Openplugins/DiscordSRV/config.yml
and paste the token in the TOKEN section: 'YOUR_ACCESS_TOKEN'.
Restart your server.
• The command does not work with webhooks.
• Commands are only available in Spigot, not in BungeeCord.
Command | Description | Command suggestion | Permission |
---|---|---|---|
/actionbar |
Send a global actionbar to the entire server. | Only STN Studios API. | Requires role and member id. |
/announce |
Send a global message to the whole server. | Only STN Studios API. | Requires role and member id. |
/announceworld |
Send a global message in a specific world. | Only STN Studios API. | Requires role and member id. |
/bossbar |
Send a global bossbar to the whole server. | Only STN Studios API. | Requires role and member id. |
/donate |
Send a donation message to the player and everyone with rewards. | Only STN Studios API. | Requires role and member id. |
/giveaway |
Choose the winner of the giveaway. | Only STN Studios API. | Requires role and member id. |
/player |
Send a private message to the player. | Only STN Studios API. | Requires role and member id. |
/reloadplugin |
Reload the plugin configurations. | Only STN Studios API. | Requires role and member id. |
Activate developer mode.
Use only member id or role id.
• Open the file
plugins/DeluxeAnnounce/token.yml
.
• You can add infinite role or member ids.
PRIVILEGED_ROLE_AND_PRIVILEGED_MEMBER:
- 'ROLE_ID_ONE'
- 'ROLE_ID_TWO'
- 'ROLE_ID_THREE'
- 'ROLE_ID_...'
- 'MEMBER_ID_ONE'
- 'MEMBER_ID_TWO'
- 'MEMBER_ID_THREE'
- 'MEMBER_ID_...'
Right-click on the user and select "Copy User ID".
Click on the user and right-click on the role and select "Copy Role ID".
Only available for the donate command.
Get the URL of the webhook.
Check your server settings.
Go to the APPS section and select Integrations, then click on the Create Webhook button.
Select Webhook and edit the title and choose the channel where the messages will be sent.
Copy the URL and follow the other steps below.
• Open the file
plugins/DeluxeAnnounce/donations/donations.yml
.
• Go to the bottom of the page.
Buttons are not available on webhooks.
The
ENABLED
path and the ENABLE_WEBHOOK
must be enabled for it to work.
SETTINGS:
DISCORD_BOT:
# Activate or deactivate the embed.
ENABLED: true
# Setting this to true will ignore STN Studios API and Discord SRV dependencies.
ENABLE_WEBHOOK: true
WEBHOOK_LINK:
- 'ENTER-THE-LINK-HERE'
- 'ENTER-THE-LINK-HERE_TWO'
- '...'
Be sure to use the
/acs reload
command to apply the changes.
SETTINGS:
DISCORD_BOT:
# Activate or deactivate the embed.
ENABLED: true
# Setting this to true will ignore STN Studios API and Discord SRV dependencies.
ENABLE_WEBHOOK: true
WEBHOOK_LINK:
- 'https://discord.com/api/webhooks/1170485384636022895/UIPcHHpEH2JBGd4mkq7PcdXTDnNY8AZ-HtWLKWnnKUqR1LW3lhhQ01hE4JLwJTUbIcsZ'
You can use the
/acs donate
command to test the webhook.