add /prestiges

also fix inconsistency with checking groups
This commit is contained in:
okx-code
2018-09-02 23:20:23 +01:00
parent e8d24a434a
commit f78bc81d0f
17 changed files with 136 additions and 45 deletions
@@ -39,6 +39,14 @@ public class RankList<T extends Rank> {
return null;
}
public T getLast() {
T t = getFirst();
do {
t = next(t);
} while(!t.isLast());
return t;
}
public T getByName(String name) {
for (T rank : ranks) {
if (rank.getName().equalsIgnoreCase(name)) {