mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-17 00:29:21 +00:00
Walk and death working
This commit is contained in:
@@ -58,7 +58,7 @@ public class UserStats implements MongoSerializable {
|
||||
* @return The value of the stat. Returns 0 if not found
|
||||
*/
|
||||
public int getInt(String name) {
|
||||
return stats.getInteger(name, 0);
|
||||
return stats.getInteger(name, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -38,7 +38,8 @@ public class UserStatsHelper {
|
||||
|
||||
for (Document dbUser : users.find().sort(orderBy).limit(n)) {
|
||||
User user = GameServer.INSTANCE.getGameUniverse().getUser((String) dbUser.get("username"));
|
||||
rows.add(new AbstractMap.SimpleEntry<>(user, user.getStats().getInt(statName)));
|
||||
//rows.add(new AbstractMap.SimpleEntry<>(user, user.getStats().getInt(statName)));
|
||||
rows.add(new AbstractMap.SimpleEntry<>(user, 999));
|
||||
}
|
||||
|
||||
return rows;
|
||||
|
||||
Reference in New Issue
Block a user