Skip to content

Commit

Permalink
Bug Fix: Config wiping if edited while server is running.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarThax08 committed Feb 18, 2022
1 parent d044fca commit 1bd9c86
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public final class SimpleCurrencies extends JavaPlugin {

private static SimpleCurrencies instance;
private Random rand;
private static String version = "3.0";
private static String version = "3.1.0";

@Override
public void onEnable() {
Expand Down Expand Up @@ -83,9 +83,6 @@ public void onEnable() {
public void onDisable() {
// Plugin shutdown logic
getServer().getLogger().info("[SimpleCurrencies] The plugin is shutting down, please wait...");
getServer().getLogger().info("[SimpleCurrencies] Saving Config...");
saveConfig();
getServer().getLogger().info("[SimpleCurrencies] Config Saved...");
getServer().getLogger().info("[SimpleCurrencies] Saving Player Data...");
for(Player player : Bukkit.getOnlinePlayers()){
PlayerConfig.saveConfig(player.getUniqueId().toString());
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Generated by Maven
#Thu Nov 26 15:38:13 EST 2020
#Fri Feb 18 11:40:02 EST 2022
groupId=com.github.carthax08
artifactId=SimpleCurrencies
version=1.0
Empty file.
Empty file.
Binary file modified target/original-SimpleCurrencies.jar
Binary file not shown.

0 comments on commit 1bd9c86

Please sign in to comment.