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

Exempt creative/spectator gamemode from environmental PvP checks #446

Merged
merged 5 commits into from Jan 10, 2019
Merged

Conversation

Apecengo
Copy link

@Apecengo Apecengo commented Jan 9, 2019

…vP checks

So I noticed that one of my users was randomly using flint & steel while mining. Turns out he was using it to detect when I was around spectating, because whenever I'm around, he cannot use it. (we have PvP disabled and thus GP blocks flint&steel when there's another player less than 9 blocks from your position)

@RoboMWM
Copy link

RoboMWM commented Jan 9, 2019

That's a first, lol.

RoboMWM
RoboMWM previously approved these changes Jan 9, 2019
@RoboMWM
Copy link

RoboMWM commented Jan 10, 2019

Just thought of another thing, may want to repeat these checks for the lava placement as well.

@RoboMWM RoboMWM changed the title Ignore players in creative or spectator mode from flint & steel non-P… Exempt creative/spectator gamemode from environmental PvP checks Jan 10, 2019
@Apecengo
Copy link
Author

Apecengo commented Jan 10, 2019 via email

@RoboMWM
Copy link

RoboMWM commented Jan 10, 2019

You can include it with this one.

@Apecengo
Copy link
Author

Apecengo commented Jan 10, 2019 via email

@TomLewis
Copy link

Brilliant, how do players figure these type of things out, always amazes me.

@Apecengo
Copy link
Author

I've noticed that there's already a check in the lava placement event to see if the player is in survival mode, so I've just added the canSee check to it.

@RoboMWM RoboMWM merged commit 9ff369f into GriefPrevention:master Jan 10, 2019
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.

None yet

3 participants