Walk and death working

This commit is contained in:
Woosle Park
2019-03-27 17:39:11 -04:00
parent e082d9c96e
commit 47b37fbee3
8 changed files with 2495 additions and 18 deletions

View File

@@ -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);
}
/**

View File

@@ -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;