User module events interface. Users are described in detail in Users article. Module subscription API is described in detail in Subscriptions article.

Methods

userDaily (user:UserClass):Void

Event hook. Called for each user online at the start of new day if the module is subscribed to it. You can subscribe the module to this event in the constructor like this:

server.subscribeModule("core/user.daily", this);

Note: The actual work is done through the client timer on next client message.

Note: The new day begins at 00:00 of server time.

Note: This hook will be called on loading user from database if the next day started.

Parameters:

user

User instance.