Skip to content

Commit

Permalink
fix: /claimprivate boolean is reversed (#209)
Browse files Browse the repository at this point in the history
fix on = true, off = false.
  • Loading branch information
djoey123 authored Oct 13, 2024
1 parent b069641 commit 728ecc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected ClaimPrivateCommand(@NotNull HuskClaims plugin) {
@Override
public void execute(@NotNull OnlineUser user, @NotNull ClaimWorld world,
@NotNull Claim claim, @NotNull String[] args) {
boolean value = !parseBooleanArg(args, 0).orElse(!claim.isPrivateClaim());
boolean value = parseBooleanArg(args, 0).orElse(!claim.isPrivateClaim());
if (value) {
plugin.fireClaimMakePrivateEvent(
user, claim, world,
Expand Down

0 comments on commit 728ecc4

Please sign in to comment.