mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
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:
File diff suppressed because one or more lines are too long
7
sql/updates/auth/master/2016_12_18_00_auth.sql
Normal file
7
sql/updates/auth/master/2016_12_18_00_auth.sql
Normal 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);
|
||||
12
sql/updates/world/master/2016_12_18_00_world.sql
Normal file
12
sql/updates/world/master/2016_12_18_00_world.sql
Normal 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';
|
||||
Reference in New Issue
Block a user