Package com.epicsagaonline.bukkit

Examples of com.epicsagaonline.bukkit.EnableError


    plugin = pm.getPlugin("Permissions");
    if (plugin != null) {
      return new NijikoPermissionManager(server);
    }
   
    throw new EnableError("Must have either Permissions or GroupManager");
  }
View Full Code Here


   
    private void checkConfigDir() throws EnableError {
      File dir = this.getDataFolder();

      if(!dir.isDirectory() && !dir.mkdirs()) {
        throw new EnableError("Could not make configuration directory "+
            dir.getPath());
      }
    }
View Full Code Here

    PluginManager pm = server.getPluginManager();
   
    try {
      perms = (Permissions)pm.getPlugin("Permissions");
      if (perms == null) {
        throw new EnableError("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 EnableError("Permissions plugins isn't type " +
          "com.nijikokun.bukkit.Permissions.Permissions");
    }
   
    handler = perms.getHandler();
    sourceFile = new File(perms.getDataFolder(), FILENAME);
View Full Code Here

    throws EnableError {
    PluginManager pm = server.getPluginManager();
   
    manager = (GroupManager)pm.getPlugin("GroupManager");
    if (manager == null) {
      throw new EnableError("GroupManager plugin doesn't " +
          "exist on this server. Please make sure GroupManager " +
          "exists in the plugins directory");
    }
    // make sure GroupManager gets enabled first
    if(!manager.isEnabled())
View Full Code Here

TOP

Related Classes of com.epicsagaonline.bukkit.EnableError

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.