mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-12-24 05:18:23 -05:00
fix: do not send non-accessible servers to the player
This commit is contained in:
parent
6a7322943a
commit
88974eee33
@ -24,6 +24,11 @@ namespace MyMcRealms.Controllers
|
||||
|
||||
foreach (var world in allServers.Servers)
|
||||
{
|
||||
if (world.WhitelistEnable && !(world.Whitelist.Any(p => p.Uuid.Replace("-", "") == playerUUID) || world.Ops.Any(p => p.Uuid.Replace("-", "") == playerUUID)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var query = new MinecraftServerQuery().Query(world.Connect);
|
||||
|
||||
if (query == null) continue;
|
||||
|
Loading…
Reference in New Issue
Block a user