1
0
mirror of https://github.com/CyberL1/MyMcRealms.git synced 2024-09-19 07:52:52 -04:00

fix: realm owner checking

This commit is contained in:
CyberL1 2024-05-22 06:56:14 +02:00
parent ead8d901f3
commit f48ded5ceb

View File

@ -36,7 +36,7 @@ namespace Minecraft_Realms_Emulator.Middlewares
return; return;
} }
if (!attribute.IsRealmOwner(playerUUID, server.Ops[0].Uuid)) if (!attribute.IsRealmOwner(playerUUID, server.Ops[0].Uuid.Replace("-", "")))
{ {
httpContext.Response.StatusCode = 403; httpContext.Response.StatusCode = 403;
await httpContext.Response.WriteAsync("You don't own this world"); await httpContext.Response.WriteAsync("You don't own this world");