If you find any bugs, PLEASE DO NOT REPORT IT IN THE REVIEW SECTION, BUT INSTEAD DM ME ON SPIGOT OR DISCORD: Sms_Gamer#3808 OR MAKE AN ISSUE ON GITHUB
A simple plugin for sending messages in discord via webhooks I decided to make for my server. It has placeholderapi support. Config's fairly self explanatory
The commands:
/discordnotif <type> [extra information]
Permissions:
discordnotif.command - to use the basic /discordnotif command
discordnotif.notif.(section name) - to use the specific notif type.
The default config:
messages:
notif-type-not-found: "&cThat notification type has not been found."
error-message: "&cUh oh! An error has occurred. Check console for more information."
basic-usage: "&cUsage: /discordnotif <type> [extra information]"
no-permission: "&cYou do not have permission to execute this command."
no-permission-notif: "&cError: You have no permission to use this notif."
Hack:
aliases:
- hack
- hacking
- cheat
- cheating
url: https://discordapp.com/api/webhooks/...
min-args: 1
usage-message: '&cUsage: /discordnotif Hack <player> <reason> [extra information]'
success-message: '&eThank you for &creporting&e &a%1%&e!'
discord-message: |
%player_name% is reporting: %1% for %2%.
```%1-4%```
```%4+%```
Every message is going through a parser which does a few things.
First off, it replaces %player_name% with the player's name if PlaceholderAPI is not installed. If PlaceholderAPI is installed, it uses PlaceholderAPI for the placeholder replacements.
Secondly, it colorizes the string (essentially replaces & with §).
And lastly, the most complicated part probably, it does fancy shenanigans with the %3% %3-6% and %3+%, which I will be explaining.
%3% will be replaced with the third argument the user has done.
%3-6% will be replaced with all the arguments between 3 and 6, inclusive, with a space separating each argument.
%3+% will be replaced with all the arguments starting at 3 with a space separating each argument.
That's basically it. If you want edit the code, go ahead, but please don't steal it. It's MIT licensed. Thx.
If you find any bugs, PLEASE DO NOT REPORT IT IN THE REVIEW SECTION, BUT INSTEAD DM ME ON SPIGOT OR DISCORD: Sms_Gamer#3808 OR MAKE AN ISSUE ON GITHUB
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta