Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljaz committed Jan 2, 2024
1 parent 336a887 commit 1109e77
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit 1109e77

Please sign in to comment.