Ejemplo n.º 1
0
 public void onPokeRecieved(TeamSpeakUser user, String pokeMessage) {
   if (user == null) {
     return;
   }
   String m = Color.cl("9") + user.getNickName() + Color.cl("a") + " pokes you.";
   if (!pokeMessage.isEmpty()) {
     m = Color.cl("9") + user.getNickName() + Color.cl("a") + " pokes you: " + pokeMessage;
   }
   TeamSpeak.infoAll(m);
   if (ConfigManager.settings.teamSpeakAlertTypeChat) {
     if (ConfigManager.settings.alertsTeamSpeak) {
       LabyMod.getInstance().displayMessageInChat(TeamSpeak.chatPrefix + m);
     }
   } else {
     LabyMod.getInstance()
         .achievementGui
         .displayBroadcast(
             user.getNickName(), TeamSpeak.url(pokeMessage), EnumAlertType.TEAMSPEAK);
   }
   TeamSpeak.overlayWindows.openInfo(user.getClientId(), "You Have Been Poked", m);
 }
Ejemplo n.º 2
0
 public void onChannelMessageRecieved(TeamSpeakUser user, String message) {
   TeamSpeak.addChat(null, user, message, EnumTargetMode.CHANNEL);
   if ((TeamSpeakController.getInstance().me != null)
       && (TeamSpeakController.getInstance().me.getClientId() != user.getClientId())) {
     if (ConfigManager.settings.teamSpeakAlertTypeChat) {
       if (ConfigManager.settings.alertsTeamSpeak) {
         LabyMod.getInstance()
             .displayMessageInChat(
                 TeamSpeak.chatPrefix
                     + Color.cl("9")
                     + user.getNickName()
                     + Color.cl("7")
                     + ": "
                     + TeamSpeak.url(message));
       }
     } else {
       LabyMod.getInstance()
           .achievementGui
           .displayBroadcast(user.getNickName(), TeamSpeak.url(message), EnumAlertType.TEAMSPEAK);
     }
   }
 }
Ejemplo n.º 3
0
 public float getPartialTicks() {
   return LabyMod.getInstance().getPartialTicks();
 }