From 174e9f569bb07c166e948615d8c2dd3dca56b9ed Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Thu, 30 Jan 2020 10:03:18 +0800 Subject: [PATCH] Remove bad config Former-commit-id: a2b31bf9288ff14b25b4367f1f646e56a01bde0e --- src/main/java/org/maxgamer/quickshop/QuickShop.java | 5 +++++ src/main/resources/config.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index 35cfeac7a..82a738b53 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -1368,6 +1368,11 @@ public class QuickShop extends JavaPlugin { getConfig().set("config-version", 78); selectedVersion = 78; } + if (selectedVersion == 78) { + getConfig().set("shop.display-type-specifics", null); + getConfig().set("config-version", 79); + selectedVersion = 79; + } saveConfig(); reloadConfig(); File file = new File(getDataFolder(), "example.config.yml"); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index d32375678..6c11ef76b 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,7 +1,7 @@ #This is example config, don't direct modify this file, all changes will revert when you reload the plugin. #Do not touch if you not clear know about this -config-version: 78 +config-version: 79 #Select the language you want to use, (e.g de), use only supported language codes from the list below. #If you use a not exist/not support language, plugin will move to use en_US to keep everything working.