mirror of
https://github.com/CyberL1/Minecraft-Realms-Emulator.git
synced 2025-07-01 09:39:44 -04:00
feat: error class, world checking middleware
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user