Skip to content

Commit

Permalink
Update a few docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Mar 28, 2017
1 parent d501628 commit 2df5616
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/me4502/util/GenerateWikiICPages.java
Expand Up @@ -263,8 +263,6 @@ public void run () {
Bukkit.getLogger().info("Finished uploading! Uploaded " + amount + " IC Pages!"); Bukkit.getLogger().info("Finished uploading! Uploaded " + amount + " IC Pages!");
if(failed.length() > 0) if(failed.length() > 0)
Bukkit.getLogger().warning("Failed to upload ICs: " + failed); Bukkit.getLogger().warning("Failed to upload ICs: " + failed);
} catch (FailedLoginException e) {
Bukkit.getLogger().warning("Failed to login to wiki!");
} catch (LoginException e) { } catch (LoginException e) {
e.printStackTrace(); e.printStackTrace();
Bukkit.getLogger().warning("Failed to login to wiki!"); Bukkit.getLogger().warning("Failed to login to wiki!");
Expand Down
Expand Up @@ -127,6 +127,12 @@ public String getShortDescription() {
return "Makes a line of fire."; return "Makes a line of fire.";
} }


@Override public String[] getLongDescription() {
return new String[] {
"The '''MC1252''' sets a certain length of blocks in fron of the IC block on fire (putting fire Block on top of them)."
};
}

@Override @Override
public void verify(ChangedSign sign) throws ICVerificationException { public void verify(ChangedSign sign) throws ICVerificationException {


Expand All @@ -148,6 +154,7 @@ public String[] getLineHelp() {
@Override @Override
public void addConfiguration(YAMLProcessor config, String path) { public void addConfiguration(YAMLProcessor config, String path) {


config.setComment(path + "max-fire-range", "The maximum range the Flamethrower IC can be set to.");
maxRange = config.getInt(path + "max-fire-range", 20); maxRange = config.getInt(path + "max-fire-range", 20);
} }
} }
Expand Down
Expand Up @@ -62,7 +62,7 @@ else if(minMode == 2)
minimum = Short.parseShort(getLine(3).split(">")[1].trim()); minimum = Short.parseShort(getLine(3).split(">")[1].trim());
else if(minMode == 3) else if(minMode == 3)
minimum = Short.parseShort(getLine(3).split("<=")[1].trim()); minimum = Short.parseShort(getLine(3).split("<=")[1].trim());
else if(minMode == 4) else
minimum = Short.parseShort(getLine(3).split("<")[1].trim()); minimum = Short.parseShort(getLine(3).split("<")[1].trim());
} catch (Exception e) { } catch (Exception e) {
minimum = 1; minimum = 1;
Expand Down

0 comments on commit 2df5616

Please sign in to comment.