Use correct region when searching for Gem Hunters
This commit is contained in:
parent
e6c7aa469b
commit
53eb499236
@ -56,7 +56,9 @@ public class TemporaryGemHuntersServerSender extends MiniPlugin
|
|||||||
public void reload()
|
public void reload()
|
||||||
{
|
{
|
||||||
_servers.clear();
|
_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();
|
ServerInfo info = new ServerInfo();
|
||||||
info.Name = server.getName();
|
info.Name = server.getName();
|
||||||
|
Loading…
Reference in New Issue
Block a user