Code:
public static String getTime() {
Calendar calendar = new GregorianCalendar();
String meridiem;
int hour = calendar.get(Calendar.HOUR);
int minute = calendar.get(Calendar.MINUTE);
meridiem = calendar.get(Calendar.AM_PM) == 0 ? "AM" : "PM";
return "[" + hour + ":" + minute + " " + meridiem + "]";
}
compare&replace
Code:
if ((chatType == 1 || chatType == 2)
&& (chatType == 1 || publicChatMode == 0 || publicChatMode == 1 && isFriendOrSelf(s1))) {
if (chatTypeView == 1 || chatTypeView == 0) {
int xPos = 11;
if (Configuration.enableTimeStamps) {
newRegularFont.drawBasicString(timeStamp, xPos, yPos + yOffset,
changeChatArea ? 0xFFFFFF : 0, shadow);
xPos += newRegularFont.getTextWidth(timeStamp);
}
if (playerRights >= 1) {
modIcons[playerRights - 1].drawSprite(xPos, yPos - 12 + yOffset);
xPos += 16;
}
newRegularFont.drawBasicString(title + s1 + ":", xPos - 3, yPos + yOffset,
changeChatArea ? 0xFFFFFF : 0, shadow);
xPos += newRegularFont.getTextWidth(title + s1) + 8;
newRegularFont.drawBasicString(" " + chatMessages[k], xPos - 8, yPos + yOffset,
changeChatArea ? 0x7FA9FF : 255, shadow);
j++;
j77++;
}
}