Skip to content

User Reconnect Success

Ta Van Dung edited this page Jun 15, 2016 · 1 revision
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;
import com.tvd12.ezyfox.core.model.ApiZone;

@ServerEventHandler(event = ServerEvent.USER_RECONNECTION_SUCCESS)
public class UserReconnectSuccessHandler {

    public void handle(AppContext context, ApiZone zone, YourUser user) {
        context.command(Log.class).from(this).info(
                "=====>> user " + user.getName()
                + " reconnection success zone = " 
                + zone.getName());
    }
    
}

Hello World

Clone this wiki locally