if (useOrbDB())
return (iConomy.Server.getPlayer(name) != null) ? 1 : (database.hasIndex(name)) ? database.getArguments(name).getInteger("status") : 0;
try {
QueryRunner run = new QueryRunner();
Connection c = iConomy.Database.getConnection();
try{
String t = Constants.Nodes.DatabaseTable.toString();
status = run.query(c, "SELECT status FROM " + t + " WHERE username=?", returnStatus, name.toLowerCase());
} catch (SQLException ex) {
System.out.println("[iConomy] Error issueing SQL query: " + ex);
} finally {
DbUtils.close(c);
}