🏧 add pay(Player player) to AuctionPayment

Took 4 minutes
This commit is contained in:
Kiran Hart 2023-02-28 23:18:55 -05:00
parent 4122316d63
commit 4969101072
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -18,8 +18,10 @@
package ca.tweetzy.auctionhouse.auction;
import ca.tweetzy.core.hooks.EconomyManager;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.bukkit.entity.Player;
import java.util.UUID;
@ -32,4 +34,8 @@ public final class AuctionPayment {
private final double amount;
private final long time;
public void pay(Player player) {
EconomyManager.withdrawBalance(player, this.amount);
}
}