From f8e09665f5db4f0bca1ce193b95b879168cb4d33 Mon Sep 17 00:00:00 2001 From: Video Date: Sat, 11 Mar 2023 02:55:51 -0700 Subject: [PATCH] [SHOP] Fixes bug where not having the Shop enabled would cause an error to be thrown then the server is shutting down --- shop/src/main/java/me/totalfreedom/shop/Shop.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/src/main/java/me/totalfreedom/shop/Shop.java b/shop/src/main/java/me/totalfreedom/shop/Shop.java index 210cfa03..72889d33 100644 --- a/shop/src/main/java/me/totalfreedom/shop/Shop.java +++ b/shop/src/main/java/me/totalfreedom/shop/Shop.java @@ -144,7 +144,7 @@ public class Shop extends FreedomService implements ShoppeCommons @Override public void onStop() { - if (ConfigEntry.SHOP_REACTIONS_ENABLED.getBoolean()) + if (ConfigEntry.SHOP_REACTIONS_ENABLED.getBoolean() && reactions != null) { reactions.cancel(); }