Added YEEHAWs to Discord

This commit is contained in:
Norbi Peti 2016-12-07 21:19:05 +01:00
parent 6f5bca8993
commit fbfa5c9b26

View file

@ -12,6 +12,7 @@ import buttondevteam.discordplugin.commands.ConnectCommand;
import buttondevteam.lib.TBMCPlayerGetInfoEvent;
import buttondevteam.lib.TBMCPlayerJoinEvent;
import buttondevteam.lib.TBMCPlayerQuitEvent;
import buttondevteam.lib.TBMCYEEHAWEvent;
import sx.blah.discord.handle.obj.IUser;
import sx.blah.discord.handle.obj.Status.StatusType;
@ -53,4 +54,9 @@ public class MCListener implements Listener {
public void onPlayerDeath(PlayerDeathEvent e) {
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel, e.getDeathMessage());
}
@EventHandler
public void onPlayerYEEHAW(TBMCYEEHAWEvent e) {
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel, e.getSender() + " YEEHAWs");
}
}