From 6f4a48c76e5296dd474f04b8aad350ca78640448 Mon Sep 17 00:00:00 2001 From: Adenydd Stuut || Winglet Date: Mon, 4 Sep 2023 00:12:50 +0200 Subject: [PATCH] fixed: Money not being handed out to sellers --- src/main/java/io/github/adainish/returngts/obj/GTS.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/io/github/adainish/returngts/obj/GTS.java b/src/main/java/io/github/adainish/returngts/obj/GTS.java index 7a75487..3f3b8db 100644 --- a/src/main/java/io/github/adainish/returngts/obj/GTS.java +++ b/src/main/java/io/github/adainish/returngts/obj/GTS.java @@ -68,6 +68,7 @@ public boolean buyItem(GTSPlayer gtsPlayer, GTSItem gtsItem) if (gtsItem.hasSold()) return false; + EconomyUtil.giveBalance(gtsItem.seller, gtsItem.askingPrice); this.gtsItems.remove(gtsItem); gtsItem.buyer = gtsPlayer.uuid;