Fix for pulling account UUID with multiple.
This commit is contained in:
parent
3d95a5cfa4
commit
49431da509
@ -185,10 +185,10 @@ public class AccountRepository extends RepositoryBase
|
||||
}
|
||||
}, new ColumnVarChar("name", 100, name));
|
||||
|
||||
if (uuids.size() > 1)
|
||||
return null;
|
||||
if (uuids.size() > 0)
|
||||
return uuids.get(uuids.size() - 1);
|
||||
else
|
||||
return uuids.size() == 1 ? uuids.get(0) : null;
|
||||
return null;
|
||||
}
|
||||
|
||||
public void saveRank(final Callback<Rank> callback, final String name, final UUID uuid, final Rank rank, final boolean perm)
|
||||
|
Loading…
Reference in New Issue
Block a user