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

Allow detection of cloaking and uncloaking in leaveplayer and joinplayer callbacks #10

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

oversword
Copy link
Contributor

The broader goal of this PR is to allow for other mods to be more usable while cloaked, if they can detect cloaking and uncloaking in the leaveplayer and joinplayer callbacks, they can decide whether or not to actually perform the action.

This will allow more comprehensive solutions to problems like this: minetest-mods/unified_inventory#248

Changes:

  • Added new records for players who are cloaking and uncloaking
  • Added api methods for querying the records
  • Update the records only around the cloaking and uncloaking calls

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