Added YEEHAWs to Discord
This commit is contained in:
parent
6f5bca8993
commit
fbfa5c9b26
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,7 @@ import buttondevteam.discordplugin.commands.ConnectCommand;
|
||||||
import buttondevteam.lib.TBMCPlayerGetInfoEvent;
|
import buttondevteam.lib.TBMCPlayerGetInfoEvent;
|
||||||
import buttondevteam.lib.TBMCPlayerJoinEvent;
|
import buttondevteam.lib.TBMCPlayerJoinEvent;
|
||||||
import buttondevteam.lib.TBMCPlayerQuitEvent;
|
import buttondevteam.lib.TBMCPlayerQuitEvent;
|
||||||
|
import buttondevteam.lib.TBMCYEEHAWEvent;
|
||||||
import sx.blah.discord.handle.obj.IUser;
|
import sx.blah.discord.handle.obj.IUser;
|
||||||
import sx.blah.discord.handle.obj.Status.StatusType;
|
import sx.blah.discord.handle.obj.Status.StatusType;
|
||||||
|
|
||||||
|
@ -53,4 +54,9 @@ public class MCListener implements Listener {
|
||||||
public void onPlayerDeath(PlayerDeathEvent e) {
|
public void onPlayerDeath(PlayerDeathEvent e) {
|
||||||
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel, e.getDeathMessage());
|
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel, e.getDeathMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
public void onPlayerYEEHAW(TBMCYEEHAWEvent e) {
|
||||||
|
DiscordPlugin.sendMessageToChannel(DiscordPlugin.chatchannel, e.getSender() + " YEEHAWs");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue