Package de.bananaco.permissions.worlds

Examples of de.bananaco.permissions.worlds.WorldPermissionsManager


    this.plugin = plugin;
  }

  public void importGroupManager() {

    WorldPermissionsManager wpm = Permissions.getWorldPermissionsManager();
    for (World world : plugin.getServer().getWorlds()) {
      PermissionSet ps = wpm.getPermissionSet(world);
      File users = new File("plugins/GroupManager/worlds/"
          + world.getName() + "/users.yml");
      File groups = new File("plugins/GroupManager/worlds/"
          + world.getName() + "/groups.yml");
      Configuration uConfig = new Configuration(users);
View Full Code Here


  }

  @SuppressWarnings("unchecked")
  public void importPermissions3() {

    WorldPermissionsManager wpm = Permissions.getWorldPermissionsManager();
    for (World world : plugin.getServer().getWorlds()) {
      PermissionSet ps = wpm.getPermissionSet(world);
      WorldPermissions wp = ps.getWorldPermissions();
     
      File users = new File("plugins/Permissions/" + world.getName()
          + "/users.yml");
      File groups = new File("plugins/Permissions/" + world.getName()
View Full Code Here

      wp.save();
    }
  }

  public void importPermissionsBukkit() {
    WorldPermissionsManager wpm = Permissions.getWorldPermissionsManager();
    for (World world : plugin.getServer().getWorlds()) {
      PermissionSet ps = wpm.getPermissionSet(world);
      File perms = new File("plugins/PermissionsBukkit/config.yml");
      Configuration pConfig = new Configuration(perms);
      pConfig.load();
      List<String> usersList = pConfig.getKeys("users");
      List<String> groupsList = pConfig.getKeys("groups");
View Full Code Here

    }
  }

  public void importPEX() {

    WorldPermissionsManager wpm = Permissions.getWorldPermissionsManager();
    for (World world : plugin.getServer().getWorlds()) {
      PermissionSet ps = wpm.getPermissionSet(world);
      File users = new File("plugins/PermissionsEx/permissions.yml");

      Configuration pConfig = new Configuration(users);
      pConfig.load();
      List<String> usersList = pConfig.getKeys("users");
View Full Code Here

    }

  }

  public void importYML() {
    WorldPermissionsManager wpm = Permissions.getWorldPermissionsManager();
    for (World world : plugin.getServer().getWorlds()) {
      PermissionSet ps = wpm.getPermissionSet(world);
      File perms = new File("plugins/bPermissions/worlds/"
          + world.getName() + ".yml");
      Configuration pConfig = new Configuration(perms);
      pConfig.load();
      List<String> usersList = pConfig.getKeys("players");
View Full Code Here

    log("Using " + wps.toString() + " for Permissions");

    setupCommands();
    if (pm == null)
      pm = new WorldPermissionsManager(this);

    pm.engage();

    if (info == null)
      info = new InfoReader();
View Full Code Here

    log("Enabled");
  }

  @Override
  public void onLoad() {
    pm = new WorldPermissionsManager(this);
    perm = pm;
    info = new InfoReader();
    PermissionBridge.loadPseudoPlugin(this, getClassLoader());
  }
View Full Code Here

TOP

Related Classes of de.bananaco.permissions.worlds.WorldPermissionsManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.