WiIIiam278 / HuskClaims

A clean, cross-server compatible grief prevention plugin
https://william278.net/project/huskclaims
Apache License 2.0
32 stars 27 forks source link

Claim private command not working as expected #209

Closed djoey123 closed 3 weeks ago

djoey123 commented 1 month ago

Old scenario /claimprivate on = false /claimprivate off = true /claimprivate = always true

New scenario

/claimprivate on = true /claimprivate off = false /claimprivate = toggle

WiIIiam278 commented 1 month ago

I don't think this logic is right, is it? If the user enters /claimprivate true, it should make the claim private and trigger the event as is the current behaviour. Also inverting the Boolean there will double invert the toggle check. Is the current logic really not correct?

djoey123 commented 1 month ago

The logic wasn't right. If you did /claimprivate on It disabled the private claim.

djoey123 commented 3 weeks ago

Could you maybe take a look at it again? 👍