Skip to content

Commit

Permalink
fix: config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeV220 committed Feb 6, 2023
1 parent a723dc9 commit 6207c04
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void onEnable() {
BukkitMinecraftUtils.registerListeners(this, new PlayerListeners(), new DeveloperInformListener());
if (OptionsUtil.PROXY.getBooleanValue())
Bukkit.getServer().getMessenger().registerIncomingPluginChannel(this, "skinoverlay:bungee", new PlayerListeners());
if(OptionsUtil.METRICS.getBooleanValue())
if (OptionsUtil.METRICS.getBooleanValue())
new Metrics(this, 17474);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void onLoad(SkinOverlayImpl skinOverlay) {
this.skinOverlay = skinOverlay;
fileManager = FileManager.getInstance();
try {
fileManager.loadFiles(getLogger(), this.getClass());
fileManager.loadFiles();
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import com.georgev22.library.yaml.configmanager.CFG;
import com.georgev22.skinoverlay.SkinOverlay;

import java.util.logging.Logger;

public final class FileManager {
private static FileManager instance;
private final SkinOverlay skinOverlay = SkinOverlay.getInstance();
Expand All @@ -19,10 +17,10 @@ public static FileManager getInstance() {
private FileManager() {
}

public void loadFiles(Logger logger, Class<?> clazz) throws Exception {
this.messages = new CFG("messages", this.skinOverlay.getDataFolder(), false, logger, clazz);
this.config = new CFG("config", this.skinOverlay.getDataFolder(), true, logger, clazz);
this.data = new CFG("data", this.skinOverlay.getDataFolder(), true, logger, clazz);
public void loadFiles() throws Exception {
this.messages = new CFG("messages", this.skinOverlay.getDataFolder(), false, false, skinOverlay.getLogger(), skinOverlay.getClass());
this.config = new CFG("config", this.skinOverlay.getDataFolder(), true, true, skinOverlay.getLogger(), skinOverlay.getClass());
this.data = new CFG("data", this.skinOverlay.getDataFolder(), true, true, skinOverlay.getLogger(), skinOverlay.getClass());
}

public CFG getMessages() {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ bungeeMain = com.georgev22.skinoverlay.SkinOverlayBungee
spongeMain = com.georgev22.skinoverlay.SkinOverlaySponge
pluginName = SkinOverlay
author = GeorgeV22
libraryVersion = 9.1.1
libraryVersion = 9.2.0
mcVersion = 1.18.2
apiVersion = 1.13
version = 3.7.1

0 comments on commit 6207c04

Please sign in to comment.