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); }
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); } } }
public float getPartialTicks() { return LabyMod.getInstance().getPartialTicks(); }