Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void registerAll() {
- for (File f : new File("plugins/SysFactions/factions/").listFiles()) {
- if (!f.getName().equalsIgnoreCase(".DS_Store")) {
- YamlConfiguration yml = YamlConfiguration.loadConfiguration(f);
- new Faction(f.getName());
- System.out.println("Faction " + yml.getString("name") + " initialized");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment