mirror of
https://github.com/CyberL1/MyMcRealms.git
synced 2024-12-04 11:38:22 -05:00
fix: realm owner checking
This commit is contained in:
parent
ead8d901f3
commit
f48ded5ceb
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user