Discord Chat Monitor - Monitor your server on Discord [Discontinued] icon

Discord Chat Monitor - Monitor your server on Discord [Discontinued] -----

Send in-game messages and event to Discord via Webhooks.




Added bStats to the plugin.
----------, Jun 18, 2023

Fixed a small issue causing the first letter of a word to be missing, if hex color was used.
----------, Jun 13, 2023

- Fixed an issue causing placeholders to not get parsed correctly, allowing formatting to show.
[​IMG]

- Added uppercase versions of color codes to the formatting parser, should a player use them in chat for some reason.

- Fixed a mistake causing a useless variable "leave" to be validated and added into config.yml.
This happened because I accidentally mixed the variables "quit" in config.yml, and "leave" in lang.yml.

- Changed event priorities of Death, Quit and Join to HIGHEST, to allow other plugins to finish up before we send the message to discord.
----------, Jun 12, 2023

Quite a few changed have been made to the plugin, so you will have to update lang.yml manually.
You can also rename or delete any of the files, to generate new ones.


config.yml
lang.yml


The plugin has been tested on 1.20 and should work as usual.
(Same goes for older versions of DCM)
(Do note that I've been testing on an experimental version of Paper, so there may be errors I do not know about, since Spigot/Paper 1.20 is in the early stages)


- PlaceholderAPI support!
You can now use other plugin's placeholders using PlaceholderAPI.
I haven't tried adding PlaceholderAPI to my plugins before, so please message me if something is off :)

- Changed how commands are handled.
They should now be castable via other plugins.

- Reworked how our own placeholders work to support PlaceholderAPI, and I've changed how the lang.yml file is layed out.
The placeholder %s has been removed from all messages.

- The config value "timestamp" has been removed and replaced with the placeholder %timestamp%

Ignore the LuckPerms hook message for now.
LuckPerms is no longer used due to PlaceholderAPI, but is still being hooked if available.
This'll be removed soon.
----------, Jun 10, 2023

Added a failsafe to disable the plugin in case the connection fails.
As of writing this, not long ago Discord's API was having heavy latency.
This caused the plugin to cause severe lag on the server, attempting to send the messages.

Should a message fail to send, the plugin will report error and disabled itself.
To re-enable this plugin, do /dcm reload, restart the server, or reload all plugins. (Recommended to just do /dcm reload)
----------, Jun 4, 2023

Sorry for another update so soon..

- Colors and formatting are now removed before being sent to discord, to avoid this kind of mess:
[​IMG]
(Spells out "Warrior Helmet" with hex colors)
If colors are ever added to Discord, I will update this function.

This also means that you are now able to use colors with /server, using § instead of &.
(§ cannot be typed in-game, and & will not work unless you have a chat coloring plugin such as EssentialsX Chat.)
----------, May 31, 2023

- Added a second attempt to get the render of the player's skin, to try and avoid what's shown in the picture:
(Unable to get render of player's skin to use as bot picture)
[​IMG]
First/Original attempt: Get player's UUID via Bukkit.
Second attempt: Fetch player's UUID using Mojang's API.

- Java version changed from Java8 to Java9.
----------, May 31, 2023

config.yml now has an option to add Discord timestamps to the messages. (Except enable/disable)
These timestamps utilize Unix timestamps, and the chat formatting of Discord, making the timestamps always show the time of the user viewing it, to support time zones.
(Message formatting in lang.yml coming soon for timestamps)

[​IMG]
----------, May 29, 2023

Fixed a bug causing errors if the death message was found null.
(Plugins such as MobArena will suppress death messages, setting them null)
----------, May 29, 2023

As requested by user Jaslii, DiscordChatMonitor now has an option to show player count on join/leave.

Code (YAML):
join-quit-player-count : true

# Join/Leave with Player counter.
# 1. %s - Original message.
# 2. %s - Online players.
# 3. %s - Max players.
with-player-count
: ' %s (%s/%s)'
----------, May 24, 2023

Fixed a small bug causing the username for start and stop to be blank.
----------, May 24, 2023

Resource Information
Author:
----------
Total Downloads: 1,584
First Release: May 24, 2023
Last Update: Jun 18, 2023
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings