Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Jul 26, 2013
1 parent 9fefe84 commit 22bc813
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/main/java/net/aufdemrand/denizen/objects/aH.java
Expand Up @@ -198,7 +198,8 @@ public static List<Argument> interpret(List<String> args) {
*
*/
public static String[] buildArgs(String stringArgs) {
final Pattern regex = Pattern.compile("[^\\s\"'¨]+|\"([^\"]*)\"|'([^']*)'|¨([^¨]*)¨");
final Pattern regex =
Pattern.compile("[^\\s\"'¨]+|\"([^\"]*)\"|'([^']*)'|¨([^¨]*)¨");

if (stringArgs == null) return null;
java.util.List<String> matchList = new ArrayList<String>();
Expand Down
Expand Up @@ -99,7 +99,7 @@ public static void remove(Notable obj) {
*/
private static void _recallNotables() {


// TODO

}

Expand All @@ -110,6 +110,7 @@ private static void _saveNotables() {

for (Map.Entry<String, Notable> notable : notableObjects.entrySet()) {

// TODO

}

Expand Down
Expand Up @@ -21,12 +21,12 @@ public class CooldownCommand extends AbstractCommand {
private enum Type { GLOBAL, PLAYER }


public String getHelp() {
public static String getHelp() {
return "Cools down an interact script. While cool, players cannot " +
"run the script. When on cooldown, the script will not pass " +
"requirements allowing the next lowest priority script to " +
"trigger. You can use <script[...].cooled_down[player]> to " +
"return whether the script is cooled down, and <script[...].cooldown> " +
"trigger. You can use <s@script_name.cooled_down[player]> to " +
"return whether the script is cooled down, and <s@script_name.cooldown> " +
"to get the duration of the cooldown in progress. Cooldown requires" +
"a type (player or default, a script, and a duration. It also requires" +
"a valid link to a dPlayer.\n" +
Expand All @@ -39,7 +39,7 @@ public String getHelp() {
}


public String getUsage() {
public static String getUsage() {
return "- cooldown ({player}|global) (script_name) [duration]";
}

Expand Down
Expand Up @@ -20,7 +20,7 @@
*/
public class DefineCommand extends AbstractCommand implements Listener {

public String getHelp() {
public static String getHelp() {
return "Defines a script/queue-level variable. Once the queue is" +
"completed, this definition is destroyed. Definitions are meant" +
"to be used as temporary variables, if any kind of persistence " +
Expand All @@ -32,8 +32,8 @@ public String getHelp() {
"- strike %doomed_player% \n";
}

public String getUsage() {
return "- define [id] [value]";
public static String getUsage() {
return "- define [<id>] [<value>]";
}

@Override
Expand Down

0 comments on commit 22bc813

Please sign in to comment.