code cleanup

This commit is contained in:
BadBones69 2020-04-19 01:31:16 -04:00
parent 1096c3940c
commit c2de90e09c
2 changed files with 3 additions and 8 deletions

View File

@ -115,11 +115,7 @@ public class Main extends JavaPlugin implements Listener {
if (Files.DATA.getFile().getInt("Items." + i + ".StoreID") == id) id = r.nextInt(Integer.MAX_VALUE);
Files.DATA.getFile().set("Items." + num + ".StoreID", id);
ShopType type = ShopType.SELL;
if (args[0].equalsIgnoreCase("Bid")) {
Files.DATA.getFile().set("Items." + num + ".Biddable", true);
} else {
Files.DATA.getFile().set("Items." + num + ".Biddable", false);
}
Files.DATA.getFile().set("Items." + num + ".Biddable", args[0].equalsIgnoreCase("Bid"));
Files.DATA.getFile().set("Items." + num + ".TopBidder", "None");
ItemStack I = item.clone();
I.setAmount(amount);

View File

@ -1,12 +1,11 @@
name: CrazyAuctions
author: BadBones69
main: me.badbones69.crazyauctions.Main
website: https://www.spigotmc.org/resources/authors/kicjow.9719/
website: https://www.spigotmc.org/resources/authors/badbones69.9719/
version: ${version}${build.number}
depend: [Vault]
api-version: 1.13
description: >
A plugin to auction off items globally.
description: A plugin to auction off items globally.
commands:
ca:
description: Opens the Crazy Auctions GUI.