Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API for other plugins to log messages #95

Open
ThijsNameIsTaken opened this issue Oct 20, 2023 · 1 comment
Open

Add API for other plugins to log messages #95

ThijsNameIsTaken opened this issue Oct 20, 2023 · 1 comment

Comments

@ThijsNameIsTaken
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants