KarlOfDuty / SCPDiscord

A NWAPI plugin which adds remote interaction to an SCP:SL server through Discord.
https://karlofduty.com
GNU General Public License v3.0
14 stars 13 forks source link

Add API for other plugins to log messages #95

Open ThijsNameIsTaken opened 12 months ago

ThijsNameIsTaken commented 12 months ago

Describe what you want to be implemented Add an API for other plugins to use to log to Discord channels, similarly to how the Smod version had this.

Motivate why this change is needed/appreciated by the community For certain plugins, logging can be quite useful. Anti-exploit plugins can log when someone is detected to use an exploit. Event plugins can use logs to log the starting and/or ending of server events. It would be very beneficial to both developers and server hosts alike.

KarlOfDuty commented 9 months ago

While this is something I think sounds great I am not really sure how it would be best implemented. Ideally the NWAPI would handle this where plugins could communicate with each other indirectly, but I don't think that exists.

Is it possible to have soft dependencies natively in .NET? Aka if an anti-exploit plugin wants to have an option to send discord notifications it shouldn't require all of its users to install scpdiscord, even if they don't use that option.

Also on a side note, does the northwood plugin manager have some way to handle plugin dependencies? As far as I know it only handles third party libraries atm.