Skip to content

Commit

Permalink
Merge pull request #5 from metakiwi/master
Browse files Browse the repository at this point in the history
Fix bug: config setting "resign" doesn't work as expected
  • Loading branch information
Paul2708 committed Jan 2, 2023
2 parents 6a44876 + 9fea454 commit f61f291
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected void run(Player player, String[] args) {
player.sendMessage(configuration.getMessage("no_item_in_hand"));
return;
}
if (!configuration.isAllowed("resign")) {
if (signer.isSigned(item) && !configuration.isAllowed("resign")) {
player.sendMessage(configuration.getMessage("resign_not_allowed"));
return;
}
Expand Down

0 comments on commit f61f291

Please sign in to comment.