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/fix some plugin hooks #543

Merged
merged 3 commits into from
Dec 22, 2024
Merged

Add/fix some plugin hooks #543

merged 3 commits into from
Dec 22, 2024

Conversation

grappigegovert
Copy link
Member

This PR adds some small things useful for plugins that I was missing:

  • Adds an extra hook onUserLogin that gets called when a user logs in (requests /configuration/Init);
  • Adds back functionality to the onMissionEnd hook that already existed but was never called;
  • Passes a plugin's filename to the plugin, which can especially be useful for SMF-added plugins. (Basically just https://nodejs.org/api/modules.html#__filename)

Relevant issue: #21

Copy link
Member

@RDIL RDIL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@RDIL RDIL merged commit e38d1c9 into master Dec 22, 2024
5 checks passed
@RDIL RDIL deleted the plugin-stuff branch December 22, 2024 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants