From ae166aba4d7fd05b73f7bab38fcd0fb2779927ba Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Mon, 7 Jul 2025 20:38:01 +0200 Subject: [PATCH] fix: the server dissapearing if whitelist is on even tho the player is op (I hope) --- MyMcRealms/Controllers/WorldsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyMcRealms/Controllers/WorldsController.cs b/MyMcRealms/Controllers/WorldsController.cs index 3a22c70..23b6e40 100644 --- a/MyMcRealms/Controllers/WorldsController.cs +++ b/MyMcRealms/Controllers/WorldsController.cs @@ -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; }