Skip to content

Commit

Permalink
Disable saving badlion configs when plugin gets disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
leolifbom committed Mar 9, 2022
1 parent a4ebd0d commit 6dcf64b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ public void run() {
}
}

@Override
public void onDisable() {
this.badlionApi.saveConfig(this.badlionApi.getBadlionConfig(), new File(this.getDataFolder(), "config.json"));
}

public BukkitBadlionApi getBadlionApi() {
return this.badlionApi;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ public void run() {
}
}

@Override
public void onDisable() {
this.badlionApi.saveConfig(this.badlionApi.getBadlionConfig(), new File(this.getDataFolder(), "config.json"));
}

public BukkitBadlionApi getBadlionApi() {
return this.badlionApi;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ public void onEnable() {
}
}

@Override
public void onDisable() {
this.badlionApi.saveConfig(this.badlionApi.getBadlionConfig(), new File(this.getDataFolder(), "config.json"));
}

public BungeeBadlionApi getBadlionApi() {
return this.badlionApi;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ public void onProxyInitialization(ProxyInitializeEvent event) {
}
}

@Subscribe
public void onProxyShutdown(ProxyShutdownEvent event) {
this.badlionApi.saveConfig(this.badlionApi.getBadlionConfig(), new File(this.getDataFolder(), "config.json"));
}

public ProxyServer getProxy() {
return this.proxyServer;
}
Expand Down

0 comments on commit 6dcf64b

Please sign in to comment.