banlist: Check for manual bans on startup
This commit is contained in:
@@ -110,7 +110,12 @@ public class BanListPlugin extends Plugin
|
|||||||
protected void startUp() throws Exception
|
protected void startUp() throws Exception
|
||||||
{
|
{
|
||||||
updateConfig();
|
updateConfig();
|
||||||
manualBans.addAll(Text.fromCSV(config.getBannedPlayers()));
|
List<String> bannedPlayers = Splitter
|
||||||
|
.on(",")
|
||||||
|
.trimResults()
|
||||||
|
.omitEmptyStrings()
|
||||||
|
.splitToList(config.getBannedPlayers());
|
||||||
|
manualBans.addAll(bannedPlayers);
|
||||||
fetchFromWebsites();
|
fetchFromWebsites();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user