mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Now you don't need to specify a page number.
This commit is contained in:
parent
53d38cc54c
commit
212f6ee773
@ -73,7 +73,15 @@ public class Page {
|
||||
{
|
||||
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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user