Kewilleen

Untitled

Aug 27th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. public static void getKits() {
  2.         File f, membros;
  3.         f = new File(pl.getDataFolder(), "Kits");
  4.         membros = new File(f + "/membro.yml");
  5.         if (!f.exists()) {
  6.             f.mkdirs();
  7.         }
  8.         if (!membros.exists()) {
  9.             try {
  10.                 membros.createNewFile();
  11.                 pl.saveResource(f + "/membro.yml", true);
  12.             } catch (IOException e) {
  13.                 e.printStackTrace();
  14.             }
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment