Core/Commands: Added new 'bnetaccount listgameaccounts' command to display all account table entries linked to a given battle.net email

* Also fixed errors about bad commands in db

Closes #18474
This commit is contained in:
Shauren
2016-12-18 12:35:27 +01:00
parent bc75899114
commit b633d61899
8 changed files with 70 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,7 @@
DELETE FROM `rbac_permissions` WHERE `id`=830;
INSERT INTO `rbac_permissions` (`id`,`name`) VALUES
(830,'Command: .bnetaccount listgameaccounts');
DELETE FROM `rbac_linked_permissions` WHERE `id`=196 AND `linkedId`=830;
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES
(196, 830);

View File

@@ -0,0 +1,12 @@
DELETE FROM `command` WHERE `name`='bnetaccount listgameaccounts';
INSERT INTO `command` (`name`,`permission`,`help`) VALUES
('bnetaccount listgameaccounts', 830, 'Syntax: .bnetaccount listgameaccounts $email $password\nLists all game accounts linked to battle.net $email');
DELETE FROM `trinity_string` WHERE `entry` IN (1034,1035);
INSERT INTO `trinity_string` (`entry`,`content_default`) VALUES
(1034, '| Account Id | Internal name | Display name |'),
(1035, 'Battle.net account %s has no linked game accounts.');
-- fix bad entries
UPDATE `command` SET `name`='scene playpackage',`help`='Syntax: .scene playpackage #scenePackageId #playbackFlags\nPlays scene with package id and playback flags for targeted player' WHERE `name`='scene play package';
UPDATE `command` SET `name`='reload scene_template',`help`='Syntax: .reload scene_template\nReload scene_template table.' WHERE `name`='reload scenes';