mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Scripts/Commands: New command ".go instance". Goes to an instance.
(cherry picked from commit 6a0870a999)
This commit is contained in:
9
sql/updates/auth/master/2018_08_30_00_auth.sql
Normal file
9
sql/updates/auth/master/2018_08_30_00_auth.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
--
|
||||
DELETE FROM `rbac_permissions` WHERE `id`=874;
|
||||
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES
|
||||
(874, "Command: go instance");
|
||||
|
||||
SET @parent := (SELECT `id` FROM `rbac_linked_permissions` WHERE `linkedId`=852);
|
||||
DELETE FROM `rbac_linked_permissions` WHERE `linkedId`=874;
|
||||
INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES
|
||||
(@parent, 874);
|
||||
@@ -0,0 +1,6 @@
|
||||
--
|
||||
DELETE FROM `command` WHERE `name`="go instance";
|
||||
INSERT INTO `command` (`name`,`permission`,`help`) VALUES
|
||||
('go instance', 874, 'Syntax: .go instance [mapid | name]
|
||||
|
||||
Teleports you to entrance of instance with script name matching input (or given mapid)');
|
||||
Reference in New Issue
Block a user