Package com.nijikokun.bukkit.Permissions

Examples of com.nijikokun.bukkit.Permissions.Permissions


      throws FileNotFoundException {
    this.server = server;
   
    PluginManager pm = server.getPluginManager();

    Permissions perms;   
   
    try {
      perms = (Permissions)pm.getPlugin("Permissions");
      if (perms == null) {
        throw new FileNotFoundException("Permissions plugin doesn't " +
            "exist on this server. Please make sure Permissions " +
            "exists in the plugins directory");
      }
        // make sure Permissions gets enabled first
        if(!perms.isEnabled())
          server.getPluginManager().enablePlugin(perms);
    }
    catch (ClassCastException e) {
      throw new FileNotFoundException("Permisisons plugins isn't type " +
          "com.nijikokun.bukkit.Permissions.Permissions");
    }
   
    handler = perms.getHandler();
    source = new WritableConfiguration(new File(perms.getDataFolder(),
        FILENAME));
   
    reloadSource();
  }
View Full Code Here

TOP

Related Classes of com.nijikokun.bukkit.Permissions.Permissions

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.