mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Updated changelog. for loops > while loops
This commit is contained in:
@ -51,12 +51,9 @@ public class Page {
|
||||
|
||||
public static void clearChat(Player player)
|
||||
{
|
||||
//Extremely ugly way of making the screen clear up
|
||||
int x = 0;
|
||||
while(x < 20)
|
||||
for(int x = 0; x < 20; x++)
|
||||
{
|
||||
player.sendMessage("");
|
||||
x++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,9 +66,9 @@ public class Page {
|
||||
String capitalized = m.getCapitalized(skilltype.toString());
|
||||
String address = "Guides."+capitalized;
|
||||
|
||||
Page.clearChat(player);
|
||||
if(args.length > 1 && m.isInt(args[1]) && m.getInt(args[1]) <= Page.getTotalPageNumber(address))
|
||||
{
|
||||
Page.clearChat(player);
|
||||
for(String target : Page.grabPageContents(capitalized+" Guide", address, m.getInt(args[1])))
|
||||
{
|
||||
player.sendMessage(target);
|
||||
|
Reference in New Issue
Block a user