CrazyAuctions try call winner of auction but when he is unlogged from server, items from seller is expired and not added to winner.
Crate Type
None
Steps to reproduce
Added item to bid auction from first account.
Bid to item from second account / winner leave server.
Wait to time left.
After when time is left is not added to winner.
Additional context
CrazyAuction have in if statement, getBalance but with static function getPlayer() excepted online player on server, Plugin with Economy return 0.0 balance because player is null, when player leave server.
if (data.getBoolean("Items." + i + ".Biddable") && !data.getString("Items." + i + ".TopBidder").equalsIgnoreCase("None") && plugin.getSupport().getMoney(getPlayer(data.getString("Items." + i + ".TopBidder"))) >= data.getInt("Items." + i + ".Price")) {
public static Player getPlayer(String name) {
try {
return Bukkit.getServer().getPlayer(name);
} catch (Exception e) {
return null;
}
}
Spark link
No response
Server Version
1.20.4
Server Platform
Purpur
Describe the bug
CrazyAuctions try call winner of auction but when he is unlogged from server, items from seller is expired and not added to winner.
Crate Type
None
Steps to reproduce
Additional context
CrazyAuction have in if statement, getBalance but with static function getPlayer() excepted online player on server, Plugin with Economy return 0.0 balance because player is null, when player leave server.
Related to this issue: https://github.com/EncryptSL/LiteEco/issues/80
Agreements