Exemplo 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());
 }
Exemplo n.º 2
0
 @EventHandler
 public void onNameTag(org.kitteh.tag.PlayerReceiveNameTagEvent e) {
   if (!pvptag.isSafe(e.getNamedPlayer().getName())) {
     Player p = e.getNamedPlayer();
     e.setTag(pvptag.nameTagColor + p.getName());
   } else {
     e.setTag(e.getNamedPlayer().getName());
   }
 }
Exemplo n.º 3
0
 @EventHandler
 public void playerJoin(PlayerJoinEvent event) {
   Player player = event.getPlayer();
   plugin.bot.sendMessage(
       plugin.getIRCChannel(), "[" + player.getName() + "] joined " + plugin.getServerName());
 }
Exemplo n.º 4
0
 @EventHandler
 public void playerLeave(PlayerQuitEvent event) {
   Player player = event.getPlayer();
   plugin.bot.sendMessage(
       plugin.getIRCChannel(), "[" + player.getName() + "] left " + plugin.getServerName());
 }
Exemplo n.º 5
0
 @EventHandler
 public void playerChatEvent(PlayerChatEvent event) {
   Player player = event.getPlayer();
   plugin.bot.sendMessage(
       plugin.getIRCChannel(), "[" + player.getName() + "] " + event.getMessage());
 }