Adds a notification system (#4931)

Allows to set up notifications if a specific player connects.
This commit is contained in:
Werner
2018-07-01 22:47:50 +03:00
committed by Erki
parent 6bc87d221c
commit 4e63821d1e
6 changed files with 217 additions and 4 deletions
@@ -0,0 +1,16 @@
--
-- Notifications for Players
--
CREATE TABLE `ss13_player_notifications` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`ckey` VARCHAR(50) NOT NULL COLLATE 'utf8_bin',
`type` ENUM('player_greeting','player_greeting_chat','admin','ccia') NOT NULL COLLATE 'utf8_bin',
`message` VARCHAR(50) NOT NULL COLLATE 'utf8_bin',
`created_by` VARCHAR(50) NOT NULL COLLATE 'utf8_bin',
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
`acked_by` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8_bin',
`acked_at` DATETIME NULL DEFAULT NULL,
PRIMARY KEY (`id`)
)
COLLATE='utf8_bin'
ENGINE=InnoDB;