mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-11-21 05:38:20 -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