/**
* Returns a String of all the UUIDs, comma separated, of the player's UUID given.
*
* @param pUUID
* Player UUID
* @param isRecursive
* Is the search recursive?
* @return the alt accounts of the player, or null if an error occurs.
*/
public BaseAccount[] getAltsOfPlayer(final UUID pUUID, final boolean isRecursive) {
ResultSet rs;
BaseAccount[] array = new BaseAccount[0];
try {
rs = getResultSet("SELECT * FROM " + s.dbPrefix + "iplog WHERE uuid = \"" + pUUID.toString() + "\";");
while (rs.next()) {
final ResultSet ipSet = getResultSet("SELECT * FROM " + s.dbPrefix + "iplog WHERE ip = \"" + rs.getString("ip") + "\";");
while (ipSet.next())
array = ObjectArrays.concat(array, new UUIDAlt(UUID.fromString(ipSet.getString("uuid")), ipSet.getString("ip")));
ipSet.close();
}
rs.close();
if (isRecursive)
return format(recursivePlayerSearch(array));
return format(array);
} catch (final SQLException e) {
error(e);
return null;
}
}
Data.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:MCProfiler
作者:
评论列表
文章目录