Solved IOException sometimes?

Discussion in 'Plugin Development' started by MrDaniel, Jan 13, 2020.

  1. Offline

    MrDaniel

    Hey, I have been testing my plugin on multiple versions, and it works well on 1.15, 1.14, and 1.13, now I am testing it for 1.12. I have 3 custom config files that I have to create or check if I can create, but when I am creating them for the first time, I get an IOException, but when I run the server again, I don't get it

    Code:
    public void loadConfigs() {
            try {
                // attributesConfig
                if (attributesFile.createNewFile()) {
                    getLogger().info("Created file: " + attributesFile.getName());
                } else {
                    getLogger().info("Config file exists: " + attributesFile.getName());
                }
               
                // messagesConfig
                if (messagesFile.createNewFile()) {
                    getLogger().info("Created file: " + messagesFile.getName());
                } else {
                    getLogger().info("Config file exists: " + messagesFile.getName());
                }
               
                // playersConfig
                if (playersFile.createNewFile()) {
                    getLogger().info("Created file: " + playersFile.getName());
                } else {
                    getLogger().info("Config file exists: " + playersFile.getName());
                }
            } catch (IOException e) {
                getLogger().severe("Got IOException when creating/loading configuration files");
            }
        }
    1st Log (open)
    Code:
    Loading libraries, please wait...
    
    [17:16:13 INFO]: Starting minecraft server version 1.12
    
    [17:16:13 INFO]: Loading properties
    
    [17:16:13 INFO]: Default game type: SURVIVAL
    
    [17:16:13 INFO]: This server is running CraftBukkit version git-Spigot-596221b-9a1fc1e (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
    
    [17:16:14 INFO]: Debug logging is disabled
    
    [17:16:14 INFO]: Server Ping Player Sample Count: 12
    
    [17:16:14 INFO]: Using 4 threads for Netty based IO
    
    [17:16:14 INFO]: Generating keypair
    
    [17:16:15 INFO]: Starting Minecraft server on *:25565
    
    [17:16:15 INFO]: Using default channel type
    
    [17:16:15 INFO]: Set PluginClassLoader as parallel capable
    
    [17:16:15 INFO]: [ServerArchitect] Loading ServerArchitect v1.0
    
    [17:16:15 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
    
    [17:16:15 INFO]: Preparing level "world"
    
    [17:16:16 INFO]: -------- World Settings For [world] --------
    
    [17:16:16 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    
    [17:16:16 INFO]: Experience Merge Radius: 3.0
    
    [17:16:16 INFO]: Arrow Despawn Rate: 1200
    
    [17:16:16 INFO]: Zombie Aggressive Towards Villager: true
    
    [17:16:16 INFO]: Nerfing mobs spawned from spawners: false
    
    [17:16:16 INFO]: Item Despawn Rate: 6000
    
    [17:16:16 INFO]: Item Merge Radius: 2.5
    
    [17:16:16 INFO]: View Distance: 10
    
    [17:16:16 INFO]: Mob Spawn Range: 4
    
    [17:16:16 INFO]: Cactus Growth Modifier: 100%
    
    [17:16:16 INFO]: Cane Growth Modifier: 100%
    
    [17:16:16 INFO]: Melon Growth Modifier: 100%
    
    [17:16:16 INFO]: Mushroom Growth Modifier: 100%
    
    [17:16:16 INFO]: Pumpkin Growth Modifier: 100%
    
    [17:16:16 INFO]: Sapling Growth Modifier: 100%
    
    [17:16:16 INFO]: Wheat Growth Modifier: 100%
    
    [17:16:16 INFO]: NetherWart Growth Modifier: 100%
    
    [17:16:16 INFO]: Vine Growth Modifier: 100%
    
    [17:16:16 INFO]: Cocoa Growth Modifier: 100%
    
    [17:16:16 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    
    [17:16:16 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [17:16:16 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    
    [17:16:16 INFO]: Max TNT Explosions: 100
    
    [17:16:16 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    
    [17:16:16 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    
    [17:16:16 INFO]: Random Lighting Updates: false
    
    [17:16:16 INFO]: Structure Info Saving: true
    
    [17:16:17 WARN]: Unable to find spawn biome
    
    [17:16:18 INFO]: -------- World Settings For [world_nether] --------
    
    [17:16:18 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    
    [17:16:18 INFO]: Experience Merge Radius: 3.0
    
    [17:16:18 INFO]: Arrow Despawn Rate: 1200
    
    [17:16:18 INFO]: Zombie Aggressive Towards Villager: true
    
    [17:16:18 INFO]: Nerfing mobs spawned from spawners: false
    
    [17:16:18 INFO]: Item Despawn Rate: 6000
    
    [17:16:18 INFO]: Item Merge Radius: 2.5
    
    [17:16:18 INFO]: View Distance: 10
    
    [17:16:18 INFO]: Mob Spawn Range: 4
    
    [17:16:18 INFO]: Cactus Growth Modifier: 100%
    
    [17:16:18 INFO]: Cane Growth Modifier: 100%
    
    [17:16:18 INFO]: Melon Growth Modifier: 100%
    
    [17:16:18 INFO]: Mushroom Growth Modifier: 100%
    
    [17:16:18 INFO]: Pumpkin Growth Modifier: 100%
    
    [17:16:18 INFO]: Sapling Growth Modifier: 100%
    
    [17:16:18 INFO]: Wheat Growth Modifier: 100%
    
    [17:16:18 INFO]: NetherWart Growth Modifier: 100%
    
    [17:16:18 INFO]: Vine Growth Modifier: 100%
    
    [17:16:18 INFO]: Cocoa Growth Modifier: 100%
    
    [17:16:18 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    
    [17:16:18 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [17:16:18 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    
    [17:16:18 INFO]: Max TNT Explosions: 100
    
    [17:16:18 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    
    [17:16:18 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    
    [17:16:18 INFO]: Random Lighting Updates: false
    
    [17:16:18 INFO]: Structure Info Saving: true
    
    [17:16:18 INFO]: -------- World Settings For [world_the_end] --------
    
    [17:16:18 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    
    [17:16:18 INFO]: Experience Merge Radius: 3.0
    
    [17:16:18 INFO]: Arrow Despawn Rate: 1200
    
    [17:16:18 INFO]: Zombie Aggressive Towards Villager: true
    
    [17:16:18 INFO]: Nerfing mobs spawned from spawners: false
    
    [17:16:18 INFO]: Item Despawn Rate: 6000
    
    [17:16:18 INFO]: Item Merge Radius: 2.5
    
    [17:16:18 INFO]: View Distance: 10
    
    [17:16:18 INFO]: Mob Spawn Range: 4
    
    [17:16:18 INFO]: Cactus Growth Modifier: 100%
    
    [17:16:18 INFO]: Cane Growth Modifier: 100%
    
    [17:16:18 INFO]: Melon Growth Modifier: 100%
    
    [17:16:18 INFO]: Mushroom Growth Modifier: 100%
    
    [17:16:18 INFO]: Pumpkin Growth Modifier: 100%
    
    [17:16:18 INFO]: Sapling Growth Modifier: 100%
    
    [17:16:18 INFO]: Wheat Growth Modifier: 100%
    
    [17:16:18 INFO]: NetherWart Growth Modifier: 100%
    
    [17:16:18 INFO]: Vine Growth Modifier: 100%
    
    [17:16:18 INFO]: Cocoa Growth Modifier: 100%
    
    [17:16:18 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    
    [17:16:18 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [17:16:18 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    
    [17:16:18 INFO]: Max TNT Explosions: 100
    
    [17:16:18 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    
    [17:16:18 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    
    [17:16:18 INFO]: Random Lighting Updates: false
    
    [17:16:18 INFO]: Structure Info Saving: true
    
    [17:16:18 INFO]: Preparing start region for level 0 (Seed: 7424787004705678828)
    
    [17:16:19 INFO]: Preparing spawn area: 2%
    
    [17:16:20 INFO]: Preparing spawn area: 4%
    
    [17:16:21 INFO]: Preparing spawn area: 6%
    
    [17:16:22 INFO]: Preparing spawn area: 8%
    
    [17:16:23 INFO]: Preparing spawn area: 13%
    
    [17:16:24 INFO]: Preparing spawn area: 20%
    
    [17:16:25 INFO]: Preparing spawn area: 24%
    
    [17:16:26 INFO]: Preparing spawn area: 28%
    
    [17:16:27 INFO]: Preparing spawn area: 33%
    
    [17:16:28 INFO]: Preparing spawn area: 42%
    
    [17:16:29 INFO]: Preparing spawn area: 50%
    
    [17:16:30 INFO]: Preparing spawn area: 57%
    
    [17:16:31 INFO]: Preparing spawn area: 64%
    
    [17:16:32 INFO]: Preparing spawn area: 70%
    
    [17:16:33 INFO]: Preparing spawn area: 79%
    
    [17:16:34 INFO]: Preparing spawn area: 90%
    
    [17:16:35 INFO]: Preparing spawn area: 99%
    
    [17:16:35 INFO]: Preparing start region for level 1 (Seed: 7424787004705678828)
    
    [17:16:36 INFO]: Preparing spawn area: 5%
    
    [17:16:38 INFO]: Preparing spawn area: 10%
    
    [17:16:39 INFO]: Preparing spawn area: 18%
    
    [17:16:40 INFO]: Preparing spawn area: 31%
    
    [17:16:41 INFO]: Preparing spawn area: 40%
    
    [17:16:42 INFO]: Preparing spawn area: 56%
    
    [17:16:43 INFO]: Preparing spawn area: 75%
    
    [17:16:44 INFO]: Preparing spawn area: 93%
    
    [17:16:44 INFO]: Preparing start region for level 2 (Seed: 7424787004705678828)
    
    [17:16:45 INFO]: Preparing spawn area: 45%
    
    [17:16:46 INFO]: Preparing spawn area: 96%
    
    [17:16:46 INFO]: [ServerArchitect] Enabling ServerArchitect v1.0
    
    [17:16:46 ERROR]: [ServerArchitect] Got IOException when creating/loading configuration files
    
    [17:16:46 INFO]: Done (30.966s)! For help, type "help" or "?"
    
    >stop
    
    [17:17:02 INFO]: Stopping the server
    
    [17:17:02 INFO]: Stopping server
    
    [17:17:02 INFO]: [ServerArchitect] Disabling ServerArchitect v1.0
    
    [17:17:02 INFO]: Saving players
    
    [17:17:02 INFO]: Saving worlds
    
    [17:17:02 INFO]: Saving chunks for level 'world'/overworld
    
    [17:17:03 INFO]: Saving chunks for level 'world_nether'/the_nether
    
    [17:17:03 INFO]: Saving chunks for level 'world_the_end'/the_end


    2nd Log (open)
    Code:
    Loading libraries, please wait...
    
    [17:17:12 INFO]: Starting minecraft server version 1.12
    
    [17:17:12 INFO]: Loading properties
    
    [17:17:12 INFO]: Default game type: SURVIVAL
    
    [17:17:12 INFO]: This server is running CraftBukkit version git-Spigot-596221b-9a1fc1e (MC: 1.12) (Implementing API version 1.12-R0.1-SNAPSHOT)
    
    [17:17:12 INFO]: Debug logging is disabled
    
    [17:17:12 INFO]: Using 4 threads for Netty based IO
    
    [17:17:12 INFO]: Server Ping Player Sample Count: 12
    
    [17:17:12 INFO]: Generating keypair
    
    [17:17:12 INFO]: Starting Minecraft server on *:25565
    
    [17:17:12 INFO]: Using default channel type
    
    [17:17:12 INFO]: Set PluginClassLoader as parallel capable
    
    [17:17:12 INFO]: [ServerArchitect] Loading ServerArchitect v1.0
    
    [17:17:12 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
    
    [17:17:12 INFO]: Preparing level "world"
    
    [17:17:12 INFO]: -------- World Settings For [world] --------
    
    [17:17:12 INFO]: Mob Spawn Range: 4
    
    [17:17:12 INFO]: Arrow Despawn Rate: 1200
    
    [17:17:12 INFO]: Item Despawn Rate: 6000
    
    [17:17:12 INFO]: Item Merge Radius: 2.5
    
    [17:17:12 INFO]: View Distance: 10
    
    [17:17:12 INFO]: Nerfing mobs spawned from spawners: false
    
    [17:17:12 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    
    [17:17:12 INFO]: Experience Merge Radius: 3.0
    
    [17:17:12 INFO]: Zombie Aggressive Towards Villager: true
    
    [17:17:12 INFO]: Cactus Growth Modifier: 100%
    
    [17:17:12 INFO]: Cane Growth Modifier: 100%
    
    [17:17:12 INFO]: Melon Growth Modifier: 100%
    
    [17:17:12 INFO]: Mushroom Growth Modifier: 100%
    
    [17:17:12 INFO]: Pumpkin Growth Modifier: 100%
    
    [17:17:12 INFO]: Sapling Growth Modifier: 100%
    
    [17:17:12 INFO]: Wheat Growth Modifier: 100%
    
    [17:17:12 INFO]: NetherWart Growth Modifier: 100%
    
    [17:17:12 INFO]: Vine Growth Modifier: 100%
    
    [17:17:12 INFO]: Cocoa Growth Modifier: 100%
    
    [17:17:12 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    
    [17:17:12 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [17:17:12 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    
    [17:17:12 INFO]: Random Lighting Updates: false
    
    [17:17:12 INFO]: Structure Info Saving: true
    
    [17:17:12 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    
    [17:17:12 INFO]: Max TNT Explosions: 100
    
    [17:17:12 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    
    [17:17:13 INFO]: -------- World Settings For [world_nether] --------
    
    [17:17:13 INFO]: Mob Spawn Range: 4
    
    [17:17:13 INFO]: Arrow Despawn Rate: 1200
    
    [17:17:13 INFO]: Item Despawn Rate: 6000
    
    [17:17:13 INFO]: Item Merge Radius: 2.5
    
    [17:17:13 INFO]: View Distance: 10
    
    [17:17:13 INFO]: Nerfing mobs spawned from spawners: false
    
    [17:17:13 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    
    [17:17:13 INFO]: Experience Merge Radius: 3.0
    
    [17:17:13 INFO]: Zombie Aggressive Towards Villager: true
    
    [17:17:13 INFO]: Cactus Growth Modifier: 100%
    
    [17:17:13 INFO]: Cane Growth Modifier: 100%
    
    [17:17:13 INFO]: Melon Growth Modifier: 100%
    
    [17:17:13 INFO]: Mushroom Growth Modifier: 100%
    
    [17:17:13 INFO]: Pumpkin Growth Modifier: 100%
    
    [17:17:13 INFO]: Sapling Growth Modifier: 100%
    
    [17:17:13 INFO]: Wheat Growth Modifier: 100%
    
    [17:17:13 INFO]: NetherWart Growth Modifier: 100%
    
    [17:17:13 INFO]: Vine Growth Modifier: 100%
    
    [17:17:13 INFO]: Cocoa Growth Modifier: 100%
    
    [17:17:13 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    
    [17:17:13 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [17:17:13 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    
    [17:17:13 INFO]: Random Lighting Updates: false
    
    [17:17:13 INFO]: Structure Info Saving: true
    
    [17:17:13 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    
    [17:17:13 INFO]: Max TNT Explosions: 100
    
    [17:17:13 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    
    [17:17:13 INFO]: -------- World Settings For [world_the_end] --------
    
    [17:17:13 INFO]: Mob Spawn Range: 4
    
    [17:17:13 INFO]: Arrow Despawn Rate: 1200
    
    [17:17:13 INFO]: Item Despawn Rate: 6000
    
    [17:17:13 INFO]: Item Merge Radius: 2.5
    
    [17:17:13 INFO]: View Distance: 10
    
    [17:17:13 INFO]: Nerfing mobs spawned from spawners: false
    
    [17:17:13 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    
    [17:17:13 INFO]: Experience Merge Radius: 3.0
    
    [17:17:13 INFO]: Zombie Aggressive Towards Villager: true
    
    [17:17:13 INFO]: Cactus Growth Modifier: 100%
    
    [17:17:13 INFO]: Cane Growth Modifier: 100%
    
    [17:17:13 INFO]: Melon Growth Modifier: 100%
    
    [17:17:13 INFO]: Mushroom Growth Modifier: 100%
    
    [17:17:13 INFO]: Pumpkin Growth Modifier: 100%
    
    [17:17:13 INFO]: Sapling Growth Modifier: 100%
    
    [17:17:13 INFO]: Wheat Growth Modifier: 100%
    
    [17:17:13 INFO]: NetherWart Growth Modifier: 100%
    
    [17:17:13 INFO]: Vine Growth Modifier: 100%
    
    [17:17:13 INFO]: Cocoa Growth Modifier: 100%
    
    [17:17:13 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    
    [17:17:13 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    
    [17:17:13 INFO]: Hopper Transfer: 8 Hopper Check: 1 Hopper Amount: 1
    
    [17:17:13 INFO]: Random Lighting Updates: false
    
    [17:17:13 INFO]: Structure Info Saving: true
    
    [17:17:13 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617 Monument: 10387313 Slime: 987234911
    
    [17:17:13 INFO]: Max TNT Explosions: 100
    
    [17:17:13 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
    
    [17:17:13 INFO]: Preparing start region for level 0 (Seed: 7424787004705678828)
    
    [17:17:14 INFO]: Preparing spawn area: 4%
    
    [17:17:15 INFO]: Preparing spawn area: 9%
    
    [17:17:16 INFO]: Preparing spawn area: 31%
    
    [17:17:17 INFO]: Preparing spawn area: 77%
    
    [17:17:18 INFO]: Preparing start region for level 1 (Seed: 7424787004705678828)
    
    [17:17:19 INFO]: Preparing spawn area: 39%
    
    [17:17:20 INFO]: Preparing start region for level 2 (Seed: 7424787004705678828)
    
    [17:17:21 INFO]: [ServerArchitect] Enabling ServerArchitect v1.0
    
    [17:17:21 INFO]: [ServerArchitect] Config file exists: attributes.yml
    
    [17:17:21 INFO]: [ServerArchitect] Config file exists: messages.yml
    
    [17:17:21 INFO]: [ServerArchitect] Created file: players.yml
    
    [17:17:21 INFO]: Server permissions file permissions.yml is empty, ignoring it
    
    [17:17:21 INFO]: Done (9.047s)! For help, type "help" or "?"
    
    [17:21:52 INFO]: UUID of player DespacitoMaster is 23fff710-ae37-43aa-9223-d84b07254e09
    
    [17:21:52 INFO]: [INFO] DespacitoMaster joined joined the server
    
    [17:21:52 INFO]: DespacitoMaster[/127.0.0.1:53819] logged in with entity id 68 at ([world]-21.5, 93.0, 125.5)
    
    [17:22:00 INFO]: DespacitoMaster issued server command: /plugins
    
    [17:22:02 INFO]: DespacitoMaster issued server command: /reload
    
    [17:22:39 INFO]: DespacitoMaster lost connection: Disconnected
    
    [17:22:39 INFO]: DespacitoMaster left the game
    
    >stop
    
    [17:22:45 INFO]: Stopping the server
    
    [17:22:45 INFO]: Stopping server
    
    [17:22:45 INFO]: [ServerArchitect] Disabling ServerArchitect v1.0
    
    [17:22:45 INFO]: Saving players
    
    [17:22:45 INFO]: Saving worlds
    
    [17:22:45 INFO]: Saving chunks for level 'world'/overworld
    
    [17:22:45 INFO]: Saving chunks for level 'world_nether'/the_nether
    
    [17:22:45 INFO]: Saving chunks for level 'world_the_end'/the_end


    out of the 3 files I have to create, 2 of the files get created and one is missing
     
  2. Offline

    KarimAKL

    @MrDaniel Try printing the stacktrace, that might give more information regarding the cause.
     
    timtower likes this.
  3. Offline

    MrDaniel

    Ok, so in my local test server the issue for some reason stopped happening, but when I run the plugin in a server I rented in server.pro it happens.

    Log (open)
    Code:
    >[16:40:39] [Server thread/ERROR]: [ServerArchitect] Got IOException when creating/loading configuration files
    
    >[16:40:39] [Server thread/WARN]: java.io.IOException: No such file or directory
    
    >[16:40:39] [Server thread/WARN]: at java.io.File.createNewFile(File.java:1012)
    
    >[16:40:39] [Server thread/WARN]: at ladeira.general.ServerHandler.loadConfigs(ServerHandler.java:65)
    
    >[16:40:39] [Server thread/WARN]: at ladeira.general.ServerHandler.onEnable(ServerHandler.java:42)
    
    >[16:40:39] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
    
    >[16:40:39] [Server thread/WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:352)
    
    >[16:40:39] [Server thread/WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417)
    
    >[16:40:39] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:462)
    
    >[16:40:39] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:376)
    
    >[16:40:39] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:456)
    
    >[16:40:39] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:266)
    
    >[16:40:39] [Server thread/WARN]: at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:783)
    
    >[16:40:39] [Server thread/WARN]: at java.lang.Thread.run(Thread.java:813)
     
  4. Offline

    KarimAKL

    @MrDaniel Does the directory you're trying to create the file in exist? Try using File#getParentFile()#mkdirs() before using File#createNewFile()
     
    MrDaniel likes this.
  5. Offline

    MrDaniel

    @KarimAKL Fixed the problem, for now at least, thx
     
    KarimAKL likes this.

Share This Page