Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
add config entry require_confirm_seller
Browse files Browse the repository at this point in the history
  • Loading branch information
Librazy committed Dec 24, 2018
1 parent 2739785 commit ce20798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/java/cat/nyaa/HamsterEcoHelper/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public class Configuration extends PluginConfigure {
public long transaction_list_closed_per_page = 5;
@Serializable(name = "transaction.tax")
public int transaction_tax = 5;
@Serializable(name = "transaction.require_confirm_seller")
public boolean transaction_require_confirm_seller = false;
@Serializable
public int database_version = 0;
@Serializable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void pay(CommandSender sender, Arguments args) {
if (invoice == null) return;
}
if (notDraft(sender, drawee, invoice)) return;
if (!drawee.getUniqueId().equals(invoice.getBuyerId())) {
if (!drawee.getUniqueId().equals(invoice.getBuyerId()) && plugin.config.transaction_require_confirm_seller) {
if (args.top() == null) {
msg(sender, "user.transaction.pay_others");
return;
Expand Down

0 comments on commit ce20798

Please sign in to comment.