public void reload() { regions = loader.reload(); regions.add(new Cuboid()); for (ArenaRegion mod : regions) { db.i("module ArenaRegion loaded: " + mod.getName() + " (version " + mod.version() + ")"); } }
/** * create an arena region manager instance * * @param plugin the plugin instance */ public ArenaRegionManager(PVPArena plugin) { File path = new File(plugin.getDataFolder().toString() + "/regions"); if (!path.exists()) { path.mkdir(); } loader = new NCLoader<ArenaRegion>(plugin, path, new Object[] {}); regions = loader.load(); regions.add(new Cuboid()); for (ArenaRegion mod : regions) { db.i("module ArenaRegion loaded: " + mod.getName() + " (version " + mod.version() + ")"); } }