Now you don't need to specify a page number.

This commit is contained in:
nossr50 2012-03-03 13:04:12 -08:00
parent 53d38cc54c
commit 212f6ee773

View File

@ -73,7 +73,15 @@ public class Page {
{ {
player.sendMessage(target); player.sendMessage(target);
} }
} else if(args.length > 1 && m.getInt(args[1]) > Page.getTotalPageNumber(address)) } else if(args.length == 1)
{
Page.clearChat(player);
for(String target : Page.grabPageContents(capitalized+" Guide", address, 1))
{
player.sendMessage(target);
}
}
else if(args.length > 1 && m.getInt(args[1]) > Page.getTotalPageNumber(address))
{ {
player.sendMessage("That page doesn't exist, there are only "+Page.getTotalPageNumber(address)+" total pages"); player.sendMessage("That page doesn't exist, there are only "+Page.getTotalPageNumber(address)+" total pages");
} }