Use correct region when searching for Gem Hunters

This commit is contained in:
cnr 2017-05-04 01:48:05 -07:00
parent e6c7aa469b
commit 53eb499236

View File

@ -56,7 +56,9 @@ public class TemporaryGemHuntersServerSender extends MiniPlugin
public void reload()
{
_servers.clear();
for (MinecraftServer server : ServerManager.getServerRepository(Region.US).getServerStatusesByPrefix("GH-"))
Region region = getPlugin().getConfig().getBoolean("serverstatus.us") ? Region.US : Region.EU;
for (MinecraftServer server : ServerManager.getServerRepository(region).getServerStatusesByPrefix("GH-"))
{
ServerInfo info = new ServerInfo();
info.Name = server.getName();