Commit graph

7 commits

Author SHA1 Message Date
Daenges
061b71befc Prevent errors from OnPlayerLeave() returning NULL
I suffered from some errors when I started the script. I soon found out, that the client detects some players leaving and I was wondering why, because there was not even a leaving message. I soon found out that the errors came from OnPlayerLeave() which returned a UUID but the name parameter was NULL. I don't know whether this is a bug in the client, but this should fix it for the script.
2021-06-02 23:11:36 +02:00
Daenges
5281bc140c
Fix pinging system in DiscordWebhook.cs (#1610)
* Check if ping already exists to avoid crashes.
* Remove bug where multiple words are not pinged
2021-05-31 18:54:04 +02:00
Daenges
b8ce4d16c4 Add more intuitive link for hardcoding 2021-05-08 11:48:15 +02:00
Daenges
2bf29c06a4
Implement hardcoding the WebhookURL (#1571)
* Implement hardcoding the WebhookURL

* Convert tabs to spaces

* Add comment
2021-05-06 19:53:20 +08:00
ReinforceZwei
7fd0f9157f
DiscordWebhook: Fix syntax error 2021-04-28 10:37:32 +08:00
Daenges
239900451d
Improvements for Discord Webhook (#1544)
* Improve caching and remove unused functions
* Save Player UUID before leaving
Save the UUID when they leave and save it until they join again.
* Clear the cache after disconnect
* Update MinecraftClient/config/ChatBots/DiscordWebhook.cs
2021-04-18 16:14:09 +02:00
Daenges
b3bae6c2f8
Add DiscordWebhook ChatBot (#1532)
* Send chatmessages to Discord via webhook.

With corresponding Minecraft skins as profilepicture.

* Support for pings at keywords and server messages.

* Cleanup, Settings Class and applied suggestions.

* Fix all function names

* Improve variable naming and UUID search

* Re-format some comment

* Rename file to DiscordWebhook.cs

* Add message caching and option for disabling UUID lookup

Add Message class
Add Cache class
Change internal Message delivery

* Add an ignore list

Improved help message
Add option to get all settings

* Add feature to deactivat CustomChatDetection

Comment some functions

* Option to unload the bot

Fix crash when not entering a valid ping syntax

Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2021-04-14 10:21:18 +08:00