diff --git a/Bukkit/src/main/java/info/preva1l/fadah/records/CurrentListing.java b/Bukkit/src/main/java/info/preva1l/fadah/records/CurrentListing.java index e5da51d..d5bef3a 100644 --- a/Bukkit/src/main/java/info/preva1l/fadah/records/CurrentListing.java +++ b/Bukkit/src/main/java/info/preva1l/fadah/records/CurrentListing.java @@ -12,7 +12,6 @@ import info.preva1l.fadah.config.ListHelper; import info.preva1l.fadah.config.Tuple; import info.preva1l.fadah.data.DatabaseManager; -import info.preva1l.fadah.data.DatabaseType; import info.preva1l.fadah.multiserver.Message; import info.preva1l.fadah.multiserver.Payload; import info.preva1l.fadah.utils.TaskManager; @@ -58,9 +57,7 @@ public void purchase(@NotNull Player buyer) { .payload(Payload.withUUID(this.getId())) .build().send(Fadah.getINSTANCE().getBroker()); } - if (Config.i().getDatabase().getType() == DatabaseType.MONGO) { - DatabaseManager.getInstance().delete(Listing.class, this); - } + DatabaseManager.getInstance().delete(Listing.class, this); // Add to collection box ItemStack itemStack = this.getItemStack().clone(); @@ -116,9 +113,7 @@ public boolean cancel(@NotNull Player canceller) { .payload(Payload.withUUID(this.getId())) .build().send(Fadah.getINSTANCE().getBroker()); } - if (Config.i().getDatabase().getType() == DatabaseType.MONGO) { - DatabaseManager.getInstance().delete(Listing.class, this); - } + DatabaseManager.getInstance().delete(Listing.class, this); CollectableItem collectableItem = new CollectableItem(this.getItemStack(), Instant.now().toEpochMilli());