diff --git a/src/main/java/net/aufdemrand/denizencore/objects/dList.java b/src/main/java/net/aufdemrand/denizencore/objects/dList.java index 7ed6f925..625f377d 100644 --- a/src/main/java/net/aufdemrand/denizencore/objects/dList.java +++ b/src/main/java/net/aufdemrand/denizencore/objects/dList.java @@ -1203,7 +1203,7 @@ public int compare(String o1, String o2) { // @attribute ]> // @returns dList // @description - // returns a copy of the listed, sorted such that the lower numbers appear first, and the higher numbers appear last. + // returns a copy of the list, sorted such that the lower numbers appear first, and the higher numbers appear last. // Rather than sorting based on the item itself, it sorts based on a tag attribute read from within the object being read. // For example, you might sort a list of players based on the amount of money they have, via .sort_by_number[money] on the list of valid players. // --> diff --git a/src/main/java/net/aufdemrand/denizencore/scripts/commands/core/WebGetCommand.java b/src/main/java/net/aufdemrand/denizencore/scripts/commands/core/WebGetCommand.java index f60fcb6a..55991e82 100644 --- a/src/main/java/net/aufdemrand/denizencore/scripts/commands/core/WebGetCommand.java +++ b/src/main/java/net/aufdemrand/denizencore/scripts/commands/core/WebGetCommand.java @@ -68,12 +68,11 @@ public void webGet(final ScriptEntry scriptEntry, Element urlp) { BufferedReader in = null; try { - // Open a connection to the paste server URL url = new URL(urlp.asString()); HttpURLConnection uc = (HttpURLConnection) url.openConnection(); uc.setDoInput(true); uc.setDoOutput(true); - uc.setConnectTimeout(10000); + uc.setConnectTimeout(10000); // TODO: Option for this! uc.connect(); in = new BufferedReader(new InputStreamReader(uc.getInputStream())); final StringBuilder sb = new StringBuilder();