Skip to content

Commit ca8ab03

Browse files
committed
Fixed economy integration
1 parent 0d46f84 commit ca8ab03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/me/zombie_striker/qg/listener/QAListener.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ public void oninvClick(final InventoryClickEvent e) {
286286
e.setCancelled(true);
287287

288288
if (shop) {
289+
if (!QAMain.enableEconomy) {
290+
try {
291+
QAMain.enableEconomy = EconHandler.setupEconomy();
292+
} catch (Exception | Error ignored) {}
293+
}
289294

290295
if (!QAMain.enableEconomy) {
291296
e.getWhoClicked().closeInventory();

0 commit comments

Comments
 (0)