This commit is contained in:
Dan Mulloy 2018-02-14 14:57:23 -05:00 committed by Alexander Meech
parent d9f6403fb0
commit ccd3f747fd
3 changed files with 6 additions and 2 deletions

View File

@ -139,7 +139,7 @@ public class CommunityManager extends MiniDbClientPlugin<CommunityMemberData>
_loadedCommunities = new ConcurrentHashMap<>();
runAsync(() ->
{
{
_repo.loadBrowserCommunities(_browserIds);
log("Loaded " + _browserIds.size() + " communities to show in browser");
});

View File

@ -40,7 +40,9 @@ public abstract class CommunitiesGUIPage implements Listener
public static CommunityManager getCommunityManager()
{
if (_manager == null)
{
_manager = Managers.require(CommunityManager.class);
}
return _manager;
}

View File

@ -177,7 +177,9 @@ public class LagMeter extends MiniPlugin
player.sendMessage(F.main(getName(), ChatColor.YELLOW + String.valueOf(player.getWorld().getLoadedChunks().length) + ChatColor.GRAY + " chunks loaded"));
if (_communities == null)
_communities = Managers.get(CommunityManager.class);
{
_communities = Managers.get(CommunityManager.class);
}
player.sendMessage(F.main(getName(), ChatColor.YELLOW + String.valueOf(_communities.getCount()) + ChatColor.GRAY + " communities loaded"));
}