Eclipse Minecraft error?

Po
- in Plugins
5

I can't say much there. Here comes a mistake

} catch

source:

package de.clynt.skpvp.utils;
import java.io.File;
import java.io.IOException;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.craftbukkit.libs.jline.console.completer.CandidateListCompletionHandler;

public class ConfigManager {
public static void checkFiles () {
File o1 = new File ("plugins / SkyPvP");

if (! (o1.exists ({
o1.mkdir ();
}

File f1 = new file ("plugins / SkyPvP / motd.yml");
YamlConfiguration cfg = new YamlConfiguration ();
cfg.set ("Line1", "§eSkyPvP.de §8-");
}
catch (IOException e) {
e.printStackTrace ();
}
}

Ro

The try to catch is missing… Try it

package de.clynt.skpvp.utils;
import java.io.File;
import java.io.IOException;

import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.craftbukkit.libs.jline.console.completer.CandidateListCompletionHandler;

public class ConfigManager {

public static void checkFiles () {
try {
File o1 = new File ("plugins / SkyPvP");
if (! (o1.exists ({
o1.mkdir ();
}
File f1 = new file ("plugins / SkyPvP / motd.yml");
YamlConfiguration cfg = new YamlConfiguration ();
cfg.set ("Line1", "§eSkyPvP.de §8-");
} catch (IOException e) {
e.printStackTrace ();
}
}
}

Co

The formatting is kac **!

Next time https://hastebin.com/...stebin.com

I guess you'll miss a clip.

If you could upload entire code to hastebin it would be nice

vi

Try {
// …
} catch (Exception e) {
// …
}

Maybe you're starting to learn Java before you take care of this Minecraft tomb.

You could also cut the code. Why two file objects? This can be programmed more elegantly.

Po

1.) Please grab your reins, 2.) It's solved, 3.) Please answer like a normal person!

Co

Sorry, now and then I let off steam, good that the others could help you.