Skip to content

Commit

Permalink
GH-141 Remove config backup system (Resolve #141)
Browse files Browse the repository at this point in the history
  • Loading branch information
vLuckyyy committed Jan 15, 2024
1 parent 42ae17b commit ab5e6a7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 130 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,9 @@

public class ConfigService {

private final ConfigBackupService backupService;

private final Set<OkaeriConfig> configs = new HashSet<>();

public ConfigService(ConfigBackupService backupService) {
this.backupService = backupService;
}

public <T extends OkaeriConfig> T create(Class<T> config, File file) {
this.backupService.createBackup();

T configFile = ConfigManager.create(config);

configFile.withConfigurer(new YamlBukkitConfigurer(), new SerdesCommons(), new SerdesBukkit());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.eternalcode.combat.bridge.BridgeService;
import com.eternalcode.combat.command.InvalidUsage;
import com.eternalcode.combat.command.PermissionMessage;
import com.eternalcode.combat.config.ConfigBackupService;
import com.eternalcode.combat.config.ConfigService;
import com.eternalcode.combat.config.implementation.PluginConfig;
import com.eternalcode.combat.drop.DropController;
Expand Down Expand Up @@ -75,8 +74,7 @@ public void onEnable() {

File dataFolder = this.getDataFolder();

ConfigBackupService backupService = new ConfigBackupService(dataFolder);
ConfigService configService = new ConfigService(backupService);
ConfigService configService = new ConfigService();

EventCaller eventCaller = new EventCaller(server);

Expand Down

0 comments on commit ab5e6a7

Please sign in to comment.