notjacob

register

Jan 31st, 2020
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1.     public static void registerAll() {
  2.         for (File f : new File("plugins/SysFactions/factions/").listFiles()) {
  3.             if (!f.getName().equalsIgnoreCase(".DS_Store")) {
  4.             YamlConfiguration yml = YamlConfiguration.loadConfiguration(f);
  5.             new Faction(f.getName());
  6.             System.out.println("Faction " + yml.getString("name") + " initialized");
  7.             }
  8.         }
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment