
DiscordGuard
Sends messages to your discord when someone is naughty in your guard.#Discord-Guard
Sends messages to your discord when someone is naughty in your guard. Hold the interaction button and paste the URL of your webhook in the window that appears.
This is Client+server mod. I made it so that a message is sent to the moderator, but the owner of the guard can additionally specify his url and messages will come to him too. the moderator's url is set in the mod's config and the client receives it from there.
When installing the mod for the first time, you need to start the server and turn it off - to generate a config. You will receive a notification when someone unauthorized tries to interact with: doors, signs, portals, beehives, chests, fermentation barrels, plants, Item Stands, item drop, Pickable things (plants, stones, branches, etc.). And also when someone uses your portal.
If your(moderator) webhook was stolen anyway, just recreate it and enter a new one in the server-side config. If this happens again, write to me in Discord, I will release a patch.
If something does not work for you, you have found any bugs, there are any suggestions, then be sure to write to me!
If you need any other language, just tell me.
My discord Just a Frogger#7777
*how to create Webhook: https://www.youtube.com/watch?v=fKksxz2Gdnc
Synced Configs
Location: BepInEx/Config/com.Frogger.DiscordGuard.0.0.9.cfg
[Main]
## The language in which the moderator receives notifications.
# Setting type: String
# Default value: English
server language = English
## If you use a mod that already prevents ItemDropPickup in guard, you can leave false.
# Setting type: Boolean
# Default value: false
preventItemDropPickup = true
## If you use a mod that already prevents PickablePickup in guard, you can leave false.
# Setting type: Boolean
# Default value: false
preventPickablePickup = true
## This is the minimum time interval between sending webhooks.
# Setting type: Single
# Default value: 2.5
webHookTimer = 2.5
[Urls]
## Url of the moderator's webhook
# Setting type: String
# Default value:
moderatorUrl = https://discord.com/api/webhooks/******
Patchnotes
| Version | Changes |
|---|---|
| 0.0.15 | The test code interfering with the stable operation of the mod has been cut out. ... Stable... who am I kidding) |
| 0.0.14 deleted | Fixed one rare bug. |
| 0.0.13 deleted | Optimized message sending. Fixed bug with cleaning the config on the server. |
| 0.0.12 | Added localization to Englith, Russian and Spanish. Other changes. |
| 0.0.11 | Added moderator url protection. It will be very problematic for the user to get it from the config. Finally added a message and an obstacle to the selection of loot and the collecting of Pickable things (plants, stones, branches, etc.). Other fixes and a pinch of bugs) |
| 0.0.10 | Fixed bugs with sending the config by the server to the client. Other fixes. |
| 0.0.9 | Changed the appearance of messages in the console, new fields in the config, plants control. And other changes. |
| 0.0.8 | Added the missing library and translated all the messages into English. |
| 0.0.7 | I made it so that a message is sent to the moderator, but the owner of the guard can additionally specify his url and messages will come to him too. And added the configuration. |
|

