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
- Native Minecraft Version:
- Legacy (< 1.13)
- Tested Minecraft Versions:
- 1.12
- 1.16
- Source Code:
- https://github.com/True-cc/DiscordNotif
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:Every message is going through a parser which does a few things.Code (YAML):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+%```
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

DiscordNotif 2.5-fix
A simple plugin for sending messages in discord via webhooks.
Recent Updates
- Apparently I uploaded the wrong jar. This should be correct one now. :/ Dec 13, 2020
- Forgot to send info to the webhook url lol. Dec 11, 2020
- Decided to no longer use any dependencies . Dec 11, 2020