feat: error class, world checking middleware

This commit is contained in:
2024-06-10 14:22:26 +02:00
parent 4a27cc028e
commit 26fa8813dd
13 changed files with 118 additions and 41 deletions

View File

@ -18,6 +18,7 @@ namespace Minecraft_Realms_Emulator.Modes.External
}
[HttpPost("{wId}/{uuid}")]
[CheckForWorld]
[CheckRealmOwner]
public ActionResult<OpsResponse> OpPlayer(int wId, string uuid)
{
@ -47,6 +48,7 @@ namespace Minecraft_Realms_Emulator.Modes.External
}
[HttpDelete("{wId}/{uuid}")]
[CheckForWorld]
[CheckRealmOwner]
public ActionResult<OpsResponse> DeopPlayer(int wId, string uuid)
{