Package com.epicsagaonline.bukkit

Examples of com.epicsagaonline.bukkit.NotFoundError


 
  public VariableContainer getGroupVars(String group) throws NotFoundError {
    DataHolder data = manager.getData();
   
    if (!data.groupExists(group)) {
      throw new NotFoundError("Group not in file: "+group);
    }
   
    return new VariableContainerImpl(data.getGroup(group).getVariables())
  }
View Full Code Here


  public VariableContainer getUserVars(String user) throws NotFoundError {
    DataHolder data = manager.getData();
   
    if (!data.isUserDeclared(user)) {
      throw new NotFoundError("User not in file: "+user);
    }
   
    return new VariableContainerImpl(manager.getData().getUser(user).getVariables());
  }
View Full Code Here

  }
 
  public String getGroup(String playerName) throws NotFoundError {
    String result =  handler.getGroup(playerName);
    if (result == null)
      throw new NotFoundError("User not in file: "+playerName);
    return result;
  }
View Full Code Here

      throws NotFoundError {
      this.path = userOrGroupPath;

      refreshSource();
      if (source.getProperty(path) == null)
        throw new NotFoundError("user or group doesn't exist: "+path);
     
      loadMap();
    }
View Full Code Here

  public String getGroup(String playerName) throws NotFoundError {
    DataHolder data = manager.getData();

    if (!data.isUserDeclared(playerName)) {
      throw new NotFoundError("User not in file: "+playerName);
    }
   
    return data.getUser(playerName).getGroupName();
  }
View Full Code Here

TOP

Related Classes of com.epicsagaonline.bukkit.NotFoundError

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.