I can implement a email notification if you agree,
but it would be cool to have more connections ...
1. webserver <-> notification system:
- livestreams, e.g. your ones
- events
- clan invitation
- new map
- ...
For live events, we send it direct over json to the faf.lobby ...
For persistent events, like clan invites, new maps, ...
I have another solution:
We have a event table:
- Code: Select all
CREATE TABLE `event` (
`id` INT NOT NULL AUTO_INCREMENT,
`data` VARCHAR(256) NOT NULL,
`time` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`));
(data is a json decoded dict)
Each startup the client ask for all events since the last logout time and show it, maybe persistent ...
2. name changes:
For performance reason we copy the player_name from the login table to a clan app table ...
Only if a player login again we check the original name and update it, if changed ...
Can I add a hook to the change_name.php script, that automatically updates the name?