Skip to content

User Logout

Ta Van Dung edited this page Jun 14, 2016 · 2 revisions
import com.tvd12.ezyfox.core.annotation.ServerEventHandler;
import com.tvd12.ezyfox.core.command.Log;
import com.tvd12.ezyfox.core.config.ServerEvent;
import com.tvd12.ezyfox.core.content.AppContext;

@ServerEventHandler(event = ServerEvent.USER_LOGOUT)
public class UserLogoutHandler {

    public void handle(AppContext context, YourUser user) {
        // String username = (user != null) ? user.getName() : "unknown"; // check null
        // Your business
    }
    
}

Hello World

Clone this wiki locally