Skip to content

Commit

Permalink
auto-remove helper on trust addition
Browse files Browse the repository at this point in the history
  • Loading branch information
tim03we committed Dec 28, 2024
1 parent 9a29289 commit 0f8b64b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public boolean execute(CommandSender sender, String command, String[] args) {
}

if(plot.isHelper(targetId)) {
player.sendMessage(this.translate(player, TranslationKey.ALREADY_HELPER, this.plugin.getCorrectName(targetId)));
return false;
plot.removeHelper(targetId);
}

if(!plot.addTrust(targetId)) {
Expand Down

0 comments on commit 0f8b64b

Please sign in to comment.