Make join request name updating redis-based

This commit is contained in:
AlexTheCoder 2016-12-22 20:29:44 -05:00 committed by cnr
parent 56ecab1985
commit e5aaa555b7

View File

@ -157,6 +157,15 @@ public class CommunityManager extends MiniDbClientPlugin<CommunityMemberData>
});
}
public void updateAllJoinRequests(UUID uuid, String name)
{
_loadedCommunities.values().stream().filter(community -> community.getJoinRequests().containsKey(uuid) && !community.getJoinRequests().get(uuid).Name.equalsIgnoreCase(name)).forEach(community ->
{
community.getJoinRequests().get(uuid).update(name);
UtilServer.CallEvent(new CommunityJoinRequestsUpdateEvent(community));
});
}
private void cycleBrowser()
{
if (_cycling)