Merge pull request #140 from simoleo89/feat/mentions-system

feat(mentions): server-side mention detection, persistence & packets
This commit is contained in:
DuckieTM
2026-06-03 09:49:45 +02:00
committed by GitHub
15 changed files with 495 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
CREATE TABLE IF NOT EXISTS `habbo_mentions` (
`id` INT NOT NULL AUTO_INCREMENT,
`target_user_id` INT NOT NULL,
`sender_user_id` INT NOT NULL,
`sender_username` VARCHAR(64) NOT NULL DEFAULT '',
`room_id` INT NOT NULL,
`room_name` VARCHAR(255) NOT NULL DEFAULT '',
`message` VARCHAR(255) NOT NULL DEFAULT '',
`mention_type` TINYINT NOT NULL DEFAULT 0,
`timestamp` INT NOT NULL DEFAULT 0,
`read` TINYINT NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
INDEX `idx_target_read` (`target_user_id`, `read`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
INSERT IGNORE INTO `emulator_settings` (`key`, `value`) VALUES
('mentions.enabled', '1'),
('mentions.room.aliases', 'amici,friends,all,everyone,tutti,room,stanza'),
('mentions.max.targets', '50'),
('mentions.cooldown.ms', '3000'),
('mentions.store.limit', '50');