Conf is now editable without having to stop server.

This commit is contained in:
ProSavage 2019-01-02 23:12:02 -06:00
parent bdd547309a
commit d6a0be7ac2

View File

@ -57,7 +57,6 @@ public class SavageFactions extends MPlugin {
public static SavageFactions plugin; public static SavageFactions plugin;
public static Permission perms = null; public static Permission perms = null;
public boolean PlaceholderApi; public boolean PlaceholderApi;
// Commands // Commands
public FCmdRoot cmdBase; public FCmdRoot cmdBase;
@ -448,7 +447,10 @@ public class SavageFactions extends MPlugin {
public void onDisable() { public void onDisable() {
// only save data if plugin actually completely loaded successfully // only save data if plugin actually completely loaded successfully
if (this.loadSuccessful) { if (this.loadSuccessful) {
Conf.save(); // Dont save, as this is kind of pointless, as the /f config command manually saves.
// So any edits done are saved, this way manual edits to json can go through.
// Conf.save();
} }
if (AutoLeaveTask != null) { if (AutoLeaveTask != null) {