From 1109e776c3fc9827f8c8d0b4d8f4f1044fd243e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ja=C5=BCd=C5=BCyk?= Date: Tue, 2 Jan 2024 15:52:40 +0100 Subject: [PATCH] small fixes --- .../main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java b/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java index 33095ee..1a22cfe 100644 --- a/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java +++ b/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java @@ -4,7 +4,6 @@ import app.shopmc.plugin.config.EmptyConfigFieldException; import app.shopmc.plugin.router.Socket; import org.bukkit.Bukkit; -import org.bukkit.ChatColor; import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.scheduler.BukkitRunnable; import org.java_websocket.handshake.ServerHandshake; @@ -18,10 +17,12 @@ public class BukkitShopMCPlugin extends JavaPlugin { @Override public void onEnable() { + // init config file if not exist if (!new File(getDataFolder(), "config.yml").exists()) { saveDefaultConfig(); } + // check if config is correct try { config = new Config(new BukkitConfigLoader(this.getConfig())); } catch (EmptyConfigFieldException exception) {