-
Notifications
You must be signed in to change notification settings - Fork 9
Buddy Message
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.ApiBuddyMessage;
@ServerEventHandler(event = ServerEvent.BUDDY_MESSAGE)
public class BuddyMessageHandler {
public void handle(AppContext context, ApiBuddyMessage message) {
context.command(Log.class).from(this).info("user {} send message {} to buddy {}",
message.sender().getName(), message.content(), message.recipient().getName());
}
}
Hello World