mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-22 11:55:12 +01:00
add new method
This commit is contained in:
parent
01ca7772a3
commit
054450aa7d
@ -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;
|
||||
@ -344,6 +345,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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user