mirror of
https://github.com/kiranhart/Auction-House.git
synced 2024-11-26 06:05:25 +01:00
🏧 add pay(Player player) to AuctionPayment
Took 4 minutes
This commit is contained in:
parent
4122316d63
commit
4969101072
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user