Esempio n. 1
0
 @EventHandler
 public void playerKicked(PlayerKickEvent event) {
   Player player = event.getPlayer();
   plugin.bot.sendMessage(
       plugin.getIRCChannel(),
       "[" + player.getName() + "] had been kicked off " + plugin.getServerName());
 }
Esempio n. 2
0
 @EventHandler
 public void playerLeave(PlayerQuitEvent event) {
   Player player = event.getPlayer();
   plugin.bot.sendMessage(
       plugin.getIRCChannel(), "[" + player.getName() + "] left " + plugin.getServerName());
 }
Esempio n. 3
0
 @EventHandler
 public void playerJoin(PlayerJoinEvent event) {
   Player player = event.getPlayer();
   plugin.bot.sendMessage(
       plugin.getIRCChannel(), "[" + player.getName() + "] joined " + plugin.getServerName());
 }