Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.bildung.manager;
- import java.io.File;
- import java.io.IOException;
- import org.bukkit.configuration.file.YamlConfiguration;
- public class Filemanager
- {
- public static void dateiErstellen(File path, File file)
- {
- if (!path.exists()) {
- path.mkdir();
- }
- if (!file.exists()) {
- try {
- file.createNewFile();
- } catch (IOException localIOException) {}
- }
- }
- public static void dateiSpeichern(File file, YamlConfiguration cfg) {
- try {
- cfg.save(file);
- }
- catch (IOException localIOException) {}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement