mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-07 15:28:02 +00:00
feat(Core/Commands): add .group invites command to toggle accepting g… (#26370)
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
DELETE FROM `rbac_permissions` WHERE `id` = 940;
|
||||
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES
|
||||
(940, 'Command: group invites');
|
||||
|
||||
DELETE FROM `rbac_linked_permissions` WHERE `linkedId` = 940;
|
||||
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
|
||||
(197, 940);
|
||||
@@ -0,0 +1,10 @@
|
||||
DELETE FROM `command` WHERE `name`='group invites';
|
||||
INSERT INTO `command` (`name`, `security`, `help`) VALUES
|
||||
('group invites', 2, 'Syntax: .group invites on|off\r\nEnable/disable accepting group invites.');
|
||||
|
||||
-- acore_string entries for .groupinvites command.
|
||||
DELETE FROM `acore_string` WHERE `entry` IN (35462, 35463, 35464);
|
||||
INSERT INTO `acore_string` (`entry`, `content_default`) VALUES
|
||||
(35462, 'Accepting Group Invites: {}'),
|
||||
(35463, 'Accepting Group Invites: ON'),
|
||||
(35464, 'Accepting Group Invites: OFF');
|
||||
Reference in New Issue
Block a user