diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityManager.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityManager.java index 5aeb9f068..f0c0cfc4d 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/CommunityManager.java @@ -139,7 +139,7 @@ public class CommunityManager extends MiniDbClientPlugin _loadedCommunities = new ConcurrentHashMap<>(); runAsync(() -> - { + { _repo.loadBrowserCommunities(_browserIds); log("Loaded " + _browserIds.size() + " communities to show in browser"); }); diff --git a/Plugins/Mineplex.Core/src/mineplex/core/communities/gui/CommunitiesGUIPage.java b/Plugins/Mineplex.Core/src/mineplex/core/communities/gui/CommunitiesGUIPage.java index 6e7be79ed..0c0ede477 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/communities/gui/CommunitiesGUIPage.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/communities/gui/CommunitiesGUIPage.java @@ -40,7 +40,9 @@ public abstract class CommunitiesGUIPage implements Listener public static CommunityManager getCommunityManager() { if (_manager == null) + { _manager = Managers.require(CommunityManager.class); + } return _manager; } diff --git a/Plugins/Mineplex.Core/src/mineplex/core/monitor/LagMeter.java b/Plugins/Mineplex.Core/src/mineplex/core/monitor/LagMeter.java index 5f542bc90..f54c12caa 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/monitor/LagMeter.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/monitor/LagMeter.java @@ -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")); }