Exemplo n.º 1
0
  public void reload() {
    regions = loader.reload();
    regions.add(new Cuboid());

    for (ArenaRegion mod : regions) {
      db.i("module ArenaRegion loaded: " + mod.getName() + " (version " + mod.version() + ")");
    }
  }
Exemplo n.º 2
0
  /**
   * 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() + ")");
    }
  }