diff --git a/VotingPlugin/src/com/bencodez/votingplugin/config/ShopFile.java b/VotingPlugin/src/com/bencodez/votingplugin/config/ShopFile.java index 8be0d76bf..265c94c57 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/config/ShopFile.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/config/ShopFile.java @@ -172,10 +172,11 @@ public void onFileCreation() { plugin.saveResource("Shop.yml", true); reloadData(); // auto conversion - if (!plugin.getGui().isJustCreated()) { + if (!plugin.getGui().isJustCreated() && !plugin.getServerData().isVoteShopConverted()) { plugin.getLogger().warning("Converting VoteShop configuration to Shop.yml from GUI.yml"); convertFromGUIFile(); } + plugin.getServerData().setShopConverted(true); } public void convertFromGUIFile() { diff --git a/VotingPlugin/src/com/bencodez/votingplugin/data/ServerData.java b/VotingPlugin/src/com/bencodez/votingplugin/data/ServerData.java index 0a6137213..42f2ab592 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/data/ServerData.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/data/ServerData.java @@ -38,6 +38,15 @@ public void addAutoCachedPlaceholder(String placeholder) { } } + public void setShopConverted(boolean value) { + getData().set("VoteShopConverted", value); + saveData(); + } + + public boolean isVoteShopConverted() { + return getData().getBoolean("VoteShopConverted"); + } + public void updatePlaceholders() { boolean data = getData().getBoolean("AutoCacheUpdated", false); if (!data) {