Added the annotation for AFK event...

This commit is contained in:
Norbi Peti 2016-12-20 22:30:00 +01:00
parent a05115293d
commit ede11fa512

View file

@ -61,6 +61,7 @@ public class MCListener implements Listener {
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel, e.getSender() + " YEEHAWs");
}
@EventHandler
public void onPlayerAFK(AfkStatusChangeEvent e) {
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel,
e.getAffected().getBase().getDisplayName() + " is " + (e.getValue() ? "now" : "no longer") + " AFK.");