From e6b757c4bde066691c4867c7d4be397b4719b717 Mon Sep 17 00:00:00 2001 From: TheR00st3r Date: Sun, 19 Nov 2023 13:07:22 +0100 Subject: [PATCH 1/3] Add Permission Hint to docs --- Docs/source/admin/commands.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Docs/source/admin/commands.rst b/Docs/source/admin/commands.rst index bd242b39..333af2eb 100644 --- a/Docs/source/admin/commands.rst +++ b/Docs/source/admin/commands.rst @@ -27,6 +27,8 @@ Player Commands Admin/Rcon Commands ------------------- +These commands are available through rcon or to users with the `Permission ` ``pugsharp/matchadmin``. + ```` marks parameters that are required for commands ``[optionalParameter]`` marks parameters that can be optionally be added to commands @@ -44,4 +46,3 @@ Admin/Rcon Commands +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ | ``!ps_dumpmatch`` | Dumps the current matchstate and config to console | +----------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+ - From 2dc8e8b92c152abbf54d7f94ebaef9ea057d64ab Mon Sep 17 00:00:00 2001 From: Alexander Volz Date: Mon, 20 Nov 2023 22:21:51 +0100 Subject: [PATCH 2/3] fix permission docs - forcepublish --- Docs/source/admin/commands.rst | 2 +- Docs/source/admin/configuration.rst | 24 +++++++++++++----------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Docs/source/admin/commands.rst b/Docs/source/admin/commands.rst index 333af2eb..04283d38 100644 --- a/Docs/source/admin/commands.rst +++ b/Docs/source/admin/commands.rst @@ -27,7 +27,7 @@ Player Commands Admin/Rcon Commands ------------------- -These commands are available through rcon or to users with the `Permission ` ``pugsharp/matchadmin``. +These commands are available through rcon or to users with the required permissions. See :ref:`admin/configuration:CounterstrikeSharp Configs` ```` marks parameters that are required for commands diff --git a/Docs/source/admin/configuration.rst b/Docs/source/admin/configuration.rst index 807d992d..04f617f9 100644 --- a/Docs/source/admin/configuration.rst +++ b/Docs/source/admin/configuration.rst @@ -3,7 +3,7 @@ Configuration Introduction ---------------------------------------- -There are two types of configurations that are relevant for PugSharp. +There are three types of configurations that are relevant for PugSharp. PugSharp Configs @@ -105,12 +105,11 @@ The Serverconfig defines server wide PugSharp settings for your server. It is lo Serverconfig Fields ''''''''''''''''''''' -+--------+--------------------------------------------------------------------------------------------+ -| Field | Description | -+========+============================================================================================+ -| admins | List of admins with the steamId and a | -| | Name (enables the execution of the :ref:`admin/commands:Admin/Rcon Commands` for a player) | -+--------+--------------------------------------------------------------------------------------------+ ++-------+-------------+ +| Field | Description | ++=======+=============+ +| none | none | ++-------+-------------+ Serverconfig Example ''''''''''''''''''''' @@ -118,13 +117,16 @@ Serverconfig Example .. code-block:: json { - "admins": { - "12345678901234569": "BOT R00st3r", - "12345678901234567": "Apfelwurm" - } + "none": "" } +CounterstrikeSharp Configs +---------------------------------------- + +For the administration permissions, we are using `the CounterstrikeSharp admin framework `_ . +Currently all :ref:`admin/commands:Admin/Rcon Commands` are using the permission ``@pugsharp/matchadmin`` + CS2 Server Configs ---------------------------------------- From 5d9bd35c4970cfbbaedb74f1e76d7f02b32ec84b Mon Sep 17 00:00:00 2001 From: Alexander Volz Date: Tue, 21 Nov 2023 00:20:02 +0100 Subject: [PATCH 3/3] update docs - forcepublish --- Docs/source/admin/configuration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docs/source/admin/configuration.rst b/Docs/source/admin/configuration.rst index 04f617f9..1bf87cdf 100644 --- a/Docs/source/admin/configuration.rst +++ b/Docs/source/admin/configuration.rst @@ -124,7 +124,7 @@ Serverconfig Example CounterstrikeSharp Configs ---------------------------------------- -For the administration permissions, we are using `the CounterstrikeSharp admin framework `_ . +For the administration permissions, we are using `the CounterstrikeSharp admin framework `_ . Currently all :ref:`admin/commands:Admin/Rcon Commands` are using the permission ``@pugsharp/matchadmin``