fix(Core/DB): adjust commands sec level to follow wiki (#9978)
* sql: update gm list to security 3 * gm list SEC_ADMINISTRATOR fallback * Update `gm on/off` to SEC_MODERATOR fallback * update code style
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1641155240423609800');
|
||||||
|
|
||||||
|
-- Adjust ".gm list" to security 3 as default
|
||||||
|
UPDATE `command` SET `security`='3' WHERE `name`='gm list';
|
||||||
@@ -48,10 +48,10 @@ public:
|
|||||||
{ "chat", HandleGMChatCommand, SEC_GAMEMASTER, Console::No },
|
{ "chat", HandleGMChatCommand, SEC_GAMEMASTER, Console::No },
|
||||||
{ "fly", HandleGMFlyCommand, SEC_GAMEMASTER, Console::No },
|
{ "fly", HandleGMFlyCommand, SEC_GAMEMASTER, Console::No },
|
||||||
{ "ingame", HandleGMListIngameCommand, SEC_PLAYER, Console::Yes },
|
{ "ingame", HandleGMListIngameCommand, SEC_PLAYER, Console::Yes },
|
||||||
{ "list", HandleGMListFullCommand, SEC_GAMEMASTER, Console::Yes },
|
{ "list", HandleGMListFullCommand, SEC_ADMINISTRATOR, Console::Yes },
|
||||||
{ "visible", HandleGMVisibleCommand, SEC_GAMEMASTER, Console::No },
|
{ "visible", HandleGMVisibleCommand, SEC_GAMEMASTER, Console::No },
|
||||||
{ "on", HandleGMOnCommand, SEC_GAMEMASTER, Console::No },
|
{ "on", HandleGMOnCommand, SEC_MODERATOR, Console::No },
|
||||||
{ "off", HandleGMOffCommand, SEC_GAMEMASTER, Console::No }
|
{ "off", HandleGMOffCommand, SEC_MODERATOR, Console::No }
|
||||||
};
|
};
|
||||||
static ChatCommandTable commandTable =
|
static ChatCommandTable commandTable =
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user