fix get banned path

This commit is contained in:
zznty
2023-03-26 13:30:25 +07:00
parent ec3bbd60c6
commit 8f5222c946
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ public class PlayersController : WebApiController
Statics.MultiplayerManager!.BanPlayer(id, false); Statics.MultiplayerManager!.BanPlayer(id, false);
} }
[Route(HttpVerbs.Get, $"{RootPath}/{{id}}/banned")] [Route(HttpVerbs.Get, $"{RootPath}/banned")]
public IEnumerable<ulong> Banned() public IEnumerable<ulong> Banned()
{ {
return MySandboxGame.ConfigDedicated.Banned; return MySandboxGame.ConfigDedicated.Banned;

View File

@@ -2,5 +2,5 @@
<PluginManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PluginManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>Torch Remote</Name> <Name>Torch Remote</Name>
<Guid>284017F3-9682-4841-A544-EB04DB8CB9BA</Guid> <Guid>284017F3-9682-4841-A544-EB04DB8CB9BA</Guid>
<Version>v1.0.10</Version> <Version>v1.0.11</Version>
</PluginManifest> </PluginManifest>