akdukaan / GPFlags

GriefPreventionFlags is a Minecraft plugin to allow players to customize their GriefPrevention claims with claimflags.
GNU General Public License v3.0
17 stars 20 forks source link

[Feature Request] Add claim-flag to disable potion effects. #27

Closed KayaEdwin closed 2 years ago

KayaEdwin commented 2 years ago

Is your feature request related to a problem? Please describe. [Players build competitions, builds that should be viewed without night vision, etc. and other players can use potions in there to either gain an unfair advantage, or get a unintended view of the area.]

Describe the solution you'd like A claim-flag to disable specific effects, but also a wildcard to disable all effects, all negative effects, and all positive effects

Describe alternatives you've considered

Additional context

akdukaan commented 2 years ago

I added a wildcard for all effects. However, I did not create a shortcut for all positive/negative effects.

Command examples: /setclaimflag nopotioneffects all /setclaimflag nopotioneffects poison speed weakness

Permissions: gpflags.bypass.nopotioneffects to bypass gpflags.flag.nopotioneffects to set the flag

You can download the build from https://jenkins.akiradev.xyz/job/GPFlags/ I have not tested the build myself. Let me know how it works!

KayaEdwin commented 2 years ago

perfect! thank you so much <3