Skip to content

Server Ready

Ta Van Dung edited this page Jun 17, 2016 · 3 revisions
import com.tvd12.ezyfox.core.annotation.ConfigProperty;
import com.tvd12.ezyfox.core.annotation.ServerEventHandler;
import com.tvd12.ezyfox.core.command.CreateRoom;
import com.tvd12.ezyfox.core.command.UpdateRoom;
import com.tvd12.ezyfox.core.config.ServerEvent;
import com.tvd12.ezyfox.core.content.AppContext;

import lombok.Data;

@Data
@ServerEventHandler(event = ServerEvent.SERVER_READY)
public class ServerReadyHandler {
    
    @ConfigProperty("appId") // example
    private String appId;
    
    public void handle(AppContext context) {
        // your business
    }
    
}

Hello World

Clone this wiki locally