Scripts/Commands: new command '.debug instancespawn'

Port From (https://github.com/TrinityCore/TrinityCore/commit/386ec582334818bb46582290e9daecb19f453897)
This commit is contained in:
hondacrx
2021-06-23 15:02:48 -04:00
parent 22c57b92db
commit 7a8b37421b
6 changed files with 152 additions and 24 deletions
@@ -0,0 +1,8 @@
--
DELETE FROM `rbac_permissions` WHERE `id`=871;
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES
(871, 'Command: debug instancespawn');
DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=871;
INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES
(196,871);
@@ -0,0 +1,6 @@
--
DELETE FROM `command` WHERE `name`="debug instancespawn";
INSERT INTO `command`(`name`,`permission`,`help`) VALUES
('debug instancespawn',871,'Syntax: .debug instancespawn [<groupID>/explain]
Displays information about the spawn groups being managed by the current instance script. If groupID is specified, additionally explains why that spawn group is in the listed state. If "explain" is specified, explains all spawn groups.');