Aesthetic changes to the /help command.

This commit is contained in:
rmichela
2012-03-15 02:26:07 -04:00
committed by EvilSeph
parent 7ea7959e69
commit d47ad6cf57
2 changed files with 9 additions and 6 deletions

View File

@@ -64,8 +64,8 @@ public class IndexHelpTopic extends HelpTopic {
line.append(topic.getShortText());
String lineStr = line.toString().replace("\n", ". ");
if (sender instanceof Player && lineStr.length() > ChatPaginator.AVERAGE_CHAT_PAGE_WIDTH) {
sb.append(lineStr.substring(0, ChatPaginator.AVERAGE_CHAT_PAGE_WIDTH - 3));
if (sender instanceof Player && lineStr.length() > ChatPaginator.GUARANTEED_NO_WRAP_CHAT_PAGE_WIDTH) {
sb.append(lineStr.substring(0, ChatPaginator.GUARANTEED_NO_WRAP_CHAT_PAGE_WIDTH - 3));
sb.append("...");
} else {
sb.append(lineStr);