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 testing protection rules without an entity event source #64

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

haykam821
Copy link
Contributor

@haykam821 haykam821 commented Nov 11, 2023

Most players will want to test what protection rules apply to non-operator players with the /protect test command, but running /protect test as an operator will almost always result in the "There are no authorities that apply to you at your current location!" feedback, which is a concern addressed in #38.

This pull request changes the default behavior of /protect test to not use an entity as context, with /protect test @s being similar to the current behavior.

This pull request also fixes a null pointer exception when running the /protect test command with a non-player entity command source.

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.

1 participant