-
Notifications
You must be signed in to change notification settings - Fork 9
Buddy Initialize
Ta Van Dung edited this page Jun 14, 2016
·
1 revision
import com.tvd12.ezyfox.core.annotation.ServerEventHandler;
import com.tvd12.ezyfox.core.command.AddBuddy;
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.BUDDY_LIST_INIT)
public class InitBuddyHandler {
public void handle(AppContext context, ApiZone zone, YourUser user) {
context.command(Log.class).info("user " + user.getName() + " init buddy");
// add buddies of the user here
}
}
Hello World