Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple player online status #13

Closed
TigerHix opened this issue May 25, 2019 · 1 comment
Closed

Simple player online status #13

TigerHix opened this issue May 25, 2019 · 1 comment
Assignees
Milestone

Comments

@TigerHix
Copy link
Member

Show a simple status on a player's profile page, i.e. Online / Playing %level% / Last seen %time% ago.

This should be easily achieved with Event System.

@TigerHix TigerHix added this to the alpha milestone May 25, 2019
@TigerHix TigerHix self-assigned this May 25, 2019
@TigerHix TigerHix mentioned this issue May 25, 2019
@Neo-Zhixing
Copy link
Member

Use the redis store for this feature.

On the server, add a global event hook and update 'player:uuid:last_activity' to a string. The key expires after a set amount of time (3600s for example)

If the key exists, we can tell that the player is active within 3600s. In that case, we can display the 'online' tag.

@Neo-Zhixing Neo-Zhixing modified the milestones: alpha, beta Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants