Skip to content

Commit 79ee602

Browse files
Fix currencies not being removed when reloading the plugin
1 parent 07b1c59 commit 79ee602

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.3+4
1+
1.0.3+5

src/main/java/de/oliver/fancyeconomy/FancyEconomyConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public void reload() {
6666
config.set("currencies.money.symbol", "$");
6767
}
6868

69+
CurrencyRegistry.CURRENCIES.clear();
6970
for (String name : config.getConfigurationSection("currencies").getKeys(false)) {
7071
String symbol = (String) ConfigHelper.getOrDefault(config, "currencies." + name + ".symbol", "$");
7172

0 commit comments

Comments
 (0)