From c2de90e09c4f5a47b44dbdb977b37f4242ac3fc0 Mon Sep 17 00:00:00 2001 From: BadBones69 Date: Sun, 19 Apr 2020 01:31:16 -0400 Subject: [PATCH] code cleanup --- src/main/java/me/badbones69/crazyauctions/Main.java | 6 +----- src/main/resources/plugin.yml | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/main/java/me/badbones69/crazyauctions/Main.java b/src/main/java/me/badbones69/crazyauctions/Main.java index 8007080..a72cf21 100644 --- a/src/main/java/me/badbones69/crazyauctions/Main.java +++ b/src/main/java/me/badbones69/crazyauctions/Main.java @@ -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); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index ff85008..5191c0e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -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.