From f5623f00f9ec7f6580a7c513f7bb0a85cff4317a Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 3 Apr 2016 13:47:57 +0100 Subject: [PATCH] blacklist npe fix --- .../mineplex/game/clans/clans/nameblacklist/ClansBlacklist.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/nameblacklist/ClansBlacklist.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/nameblacklist/ClansBlacklist.java index c9e71bfe8..3cdc005f9 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/nameblacklist/ClansBlacklist.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/clans/nameblacklist/ClansBlacklist.java @@ -21,6 +21,8 @@ public class ClansBlacklist extends MiniPlugin super("Clan Name Blacklist", plugin); _repository = new ClanNameBlacklistRepository(plugin, this); + + runAsync(() -> _repository.loadNames(this::setBlacklist)); } // Fetch new blacklisted clans every 16 seconds (in case someone blacklists a clan name on a different server)