mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
feat(Core/Player): Implement player specific settings (#9483)
This commit is contained in:
@@ -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';
|
||||
@@ -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.');
|
||||
Reference in New Issue
Block a user