Player Disconnect message disabled, still runsNot An Issue

I've recently had this plugin display odd behavior.

Specifically, whenever a player leaves the server, I get the following message in the console:
[Discord Logger] DiscordSendMessage: webhookUrl is null or empty!

This is unexpected, as my configuration file should have prevented this from occurring:

  "Player disconnect settings": {
    "WebhookURL": "",
    "Enabled?": false
  },​

I've confirmed that it's the plugin's OnPlayerDisconnected function being called, as editing this function to print additional data results in said data being written to the console:
xxx.xxx.xxx.xxx:xxxx/7656xxxxxxxxxxxxx/username disconnecting: disconnect
[Discord Logger] DiscordSendMessage: webhookUrl is null or empty!
[Discord Logger] Message: :x:  username disconnected (Disconnected)

That said, if I edit the function which registers the function subscription, it appears the registration never occurs.

same, my discord is being spammed with disconnect notices

Same .. just noticed it .. turned off but still trying to send to the webhook that isn't specified.

Until the root cause is located and addressed, the following workaround can be implemented to avoid any console/Discord spam:

In the DiscordLogger.cs file, edit line 800 to change

if (!player.IsValid())​

to the following:
if (!player.IsValid() || !_configData.PlayerDisconnectedSettings.Enabled)​

Then, reload the plugin.

thank you

It was oxide bug, not related to plugin

Locked automatically