From 3a73b05895c80f5c6ae828802263589b2db87f54 Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Sat, 20 Feb 2016 00:48:30 -0600 Subject: [PATCH] Fix for ServerMonitor not loading database config --- .../src/mineplex/serverdata/database/DBPool.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugins/Mineplex.ServerData/src/mineplex/serverdata/database/DBPool.java b/Plugins/Mineplex.ServerData/src/mineplex/serverdata/database/DBPool.java index 226e45f44..f69fabe62 100644 --- a/Plugins/Mineplex.ServerData/src/mineplex/serverdata/database/DBPool.java +++ b/Plugins/Mineplex.ServerData/src/mineplex/serverdata/database/DBPool.java @@ -79,6 +79,9 @@ public final class DBPool public static DataSource getServerStats() { + if (SERVER_STATS == null) + loadDataSources(); + return SERVER_STATS; }