a little bit of cleanup
This commit is contained in:
parent
a74398a9a5
commit
7af7e42d38
@ -124,9 +124,11 @@ public class CommandList extends BaseCommand
|
|||||||
|
|
||||||
|
|
||||||
if (currentPage == page)
|
if (currentPage == page)
|
||||||
|
{
|
||||||
pageMessages.add(TextUtil.implode(currentIds, ", "));
|
pageMessages.add(TextUtil.implode(currentIds, ", "));
|
||||||
if (currentPage == page && finishedCurrentIds == false)
|
if (finishedCurrentIds == false)
|
||||||
pageMessages.set(pageMessages.size() -2, pageMessages.get(pageMessages.size() -2) + " (more on previous page)");
|
pageMessages.set(pageMessages.size() -2, pageMessages.get(pageMessages.size() -2) + " (more on previous page)");
|
||||||
|
}
|
||||||
|
|
||||||
finishedCurrentIds = true;
|
finishedCurrentIds = true;
|
||||||
}
|
}
|
||||||
@ -174,9 +176,11 @@ public class CommandList extends BaseCommand
|
|||||||
return null;
|
return null;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// not nice! TODO: find a better way to send this message!
|
ArrayList<String> retVal = new ArrayList<String>();
|
||||||
sendMessage(ChatColor.LIGHT_PURPLE + "This is page " + ChatColor.WHITE + page + ChatColor.LIGHT_PURPLE + "/" + ChatColor.WHITE + --currentPage + ChatColor.LIGHT_PURPLE + ". There are " + gates.size() + " gates on this server: ");
|
retVal.add(ChatColor.LIGHT_PURPLE + "This is page " + ChatColor.WHITE + page + ChatColor.LIGHT_PURPLE + "/" + ChatColor.WHITE + --currentPage + ChatColor.LIGHT_PURPLE + ". There are " + gates.size() + " gates on this server: ");
|
||||||
return pageMessages;
|
retVal.addAll(pageMessages);
|
||||||
|
|
||||||
|
return retVal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user