[SHOP] Fixes bug where not having the Shop enabled would cause an error to be thrown then the server is shutting down

This commit is contained in:
Video 2023-03-11 02:55:51 -07:00
parent a5135ef641
commit f8e09665f5

View File

@ -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();
}