mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-21 11:45:11 +01:00
add top bidder price to data.yml
This commit is contained in:
parent
3d9c011185
commit
d1223e87a1
@ -328,6 +328,7 @@ public class UserManager {
|
||||
|
||||
section.set("status.top_bidder.uuid", "None");
|
||||
section.set("status.top_bidder.name", "None");
|
||||
section.set("status.top_bidder.price", 0);
|
||||
section.set("status.biddable", isBiddable);
|
||||
|
||||
addActiveAuction(uuid, section);
|
||||
@ -361,7 +362,7 @@ public class UserManager {
|
||||
}
|
||||
}
|
||||
|
||||
private void addActiveAuction(final String uuid, final ConfigurationSection section) {
|
||||
public void addActiveAuction(final String uuid, final ConfigurationSection section) {
|
||||
final AuctionItem new_auction = new AuctionItem(uuid, section.getString("name"),
|
||||
section.getName(),
|
||||
section.getString("item"),
|
||||
@ -371,6 +372,7 @@ public class UserManager {
|
||||
section.getLong("time.full"),
|
||||
section.getString("status.top_bidder.uuid", "None"),
|
||||
section.getString("status.top_bidder.name", "None"),
|
||||
section.getLong("status.top_bidder.price", 0),
|
||||
section.getBoolean("status.biddable")
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user