refactor(Core/Motd): Move motd from conf to db (#15111)

This commit is contained in:
Kitzunu
2023-02-20 22:07:26 +01:00
committed by GitHub
parent bd7f139bb8
commit 0c4feb6744
13 changed files with 126 additions and 36 deletions

View File

@@ -0,0 +1,11 @@
--
DROP TABLE IF EXISTS `motd`;
CREATE TABLE `motd` (
`realmid` INT NOT NULL,
`text` LONGTEXT NULL DEFAULT NULL,
PRIMARY KEY (`realmid`)
) ENGINE=InnoDB;
DELETE FROM `motd` WHERE `realmid`=1;
INSERT INTO `motd` (`realmid`, `text`) VALUES
(-1, 'Welcome to an AzerothCore server.');

View File

@@ -0,0 +1,9 @@
--
DELETE FROM `command` WHERE `name` = 'reload motd';
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('reload motd', 3, 'Syntax: .reload motd
Reload motd table.');
UPDATE `command` SET `help`='Syntax: .server set motd $realmId $MOTD\r\n\r\nSet server Message of the day for the specified realm.' WHERE `name`='server set motd';
UPDATE `acore_string` SET `content_default`='Message of the day in realm %i changed to:\r\n%s', `locale_deDE`='Nachricht des Tages in Realm %i wurde geändert zu:\r\n%s', `locale_zhCN`='每日消息更改为 in realm %i:\r\n%s' WHERE `entry`=1101;