1
1
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2025-07-11 22:09:42 -04:00

fix: the server dissapearing if whitelist is on even tho the player is op (I hope)

This commit is contained in:
CyberL1
2025-07-07 20:38:01 +02:00
parent eb5f50be7b
commit ae166aba4d

View File

@ -30,7 +30,7 @@ namespace MyMcRealms.Controllers
{
if (world.Online)
{
if (world.WhitelistEnable && !(world.Whitelist.Any(p => p.Uuid.Replace("-", "") == playerUUID) || world.Ops.Any(p => p.Uuid.Replace("-", "") == playerUUID)))
if (world.WhitelistEnable && !(world.Whitelist.Any(p => p.Uuid.Replace("-", "") == playerUUID) && world.Ops.Any(p => p.Uuid.Replace("-", "") == playerUUID)))
{
continue;
}