feat(Core/Player): Implement player specific settings (#9483)

This commit is contained in:
Skjalf
2021-12-26 08:39:15 -03:00
committed by GitHub
parent d2950b21b9
commit 58302e4196
19 changed files with 381 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1638643807174948000');
DROP TABLE IF EXISTS `character_settings`;
CREATE TABLE IF NOT EXISTS `character_settings` (
`guid` INT UNSIGNED NOT NULL,
`source` VARCHAR(40) NOT NULL,
`data` TEXT NULL,
PRIMARY KEY (`guid`, `source`)
) ENGINE=MYISAM DEFAULT CHARSET=utf8mb4 COMMENT='Player Settings';

View File

@@ -0,0 +1,12 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638641366613580300');
DELETE FROM `command` WHERE `name` IN ('settings', 'settings announcer');
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('settings', 1, 'Syntax: .settings $subcommand\nType .setting to see the list of all available commands.'),
('settings announcer', 1, 'Syntax: .settings announcer <type> <on/off>.\nDisables receiving announcements. Valid announcement types are: \'autobroadcast\', \'arena\' and \'bg\'');
DELETE FROM `acore_string` WHERE `entry` IN (5079, 5080, 5081);
INSERT INTO `acore_string` (`entry`, `content_default`) VALUES
(5079, 'You must be at least level %u to disable autobroadcast messages.'),
(5080, 'You are now receiving global %s messages.'),
(5081, 'You will no longer receive global %s messages.');