add new method

This commit is contained in:
Ryder Belserion 2024-10-08 17:30:32 -04:00
parent 01ca7772a3
commit 054450aa7d
No known key found for this signature in database

View File

@ -6,6 +6,7 @@ import com.badbones69.crazyauctions.api.events.AuctionExpireEvent;
import com.badbones69.crazyauctions.api.events.AuctionWinBidEvent;
import org.bukkit.*;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
@ -343,6 +344,10 @@ public class Methods {
if (shouldSave) Files.data.save();
}
public static String getNewPrice(ConfigurationSection section, boolean expired) {
return section.getString("Price");
}
public static String getPrice(String ID, Boolean Expired) {
long price = 0L;