From 7ca0e4a02fa5bfde6b3a405dcd9a0f6800a67dc2 Mon Sep 17 00:00:00 2001 From: Alex 'mcmonkey' Goodwin Date: Mon, 30 Dec 2019 04:07:38 -0800 Subject: [PATCH] meta fixes --- .../denizencore/scripts/commands/CommandRegistry.java | 3 ++- .../denizencore/scripts/commands/core/AdjustCommand.java | 2 +- .../denizencore/scripts/commands/queue/ForeachCommand.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/denizenscript/denizencore/scripts/commands/CommandRegistry.java b/src/main/java/com/denizenscript/denizencore/scripts/commands/CommandRegistry.java index 42349423..87b55a04 100644 --- a/src/main/java/com/denizenscript/denizencore/scripts/commands/CommandRegistry.java +++ b/src/main/java/com/denizenscript/denizencore/scripts/commands/CommandRegistry.java @@ -66,9 +66,10 @@ public T get(Class clazz) { // Anything outside of <> is literal... you must put it exactly as-is. // <#> represents a number without a decimal, and <#.#> represents a number with a decimal // Lastly, input that ends with "|..." (EG, [|...] ) can take a list of the input indicated before it (In that example, a list of entities) + // An argument that contains a ":" (like "duration:") is a prefix:value pair. The prefix is usually literal and the value dynamic. The prefix and the colon should be kept directly in the final command. // // A few examples: - // [] is required and non-literal... you might fill it with 'l@1,2,3,world' which is a valid location object. + // [] is required and non-literal... you might fill it with a notable location, or a tag that returns one like ''. // (sound:{true}/false) is optional and has a default value of true... you can put sound:false to prevent sound, or leave it blank to allow sound. // (repeats:<#>) is optional, has no clear default, and is a number. You can put repeats:3 to repeat three times, or leave it blank to not repeat. // Note: Optional arguments without a default usually have a secret default... EG, the (repeats:<#>) above has a secret default of '0'. diff --git a/src/main/java/com/denizenscript/denizencore/scripts/commands/core/AdjustCommand.java b/src/main/java/com/denizenscript/denizencore/scripts/commands/core/AdjustCommand.java index 2d5b6348..f1d146c6 100644 --- a/src/main/java/com/denizenscript/denizencore/scripts/commands/core/AdjustCommand.java +++ b/src/main/java/com/denizenscript/denizencore/scripts/commands/core/AdjustCommand.java @@ -39,7 +39,7 @@ public class AdjustCommand extends AbstractCommand { // // @Usage // Use to set a custom display name on an entity. - // - adjust e@1000 custom_name:ANGRY! + // - adjust <[some_entity]> custom_name:ANGRY! // // @Usage // Use to set the skin of every online player. diff --git a/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/ForeachCommand.java b/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/ForeachCommand.java index 9f07d807..b6c8506f 100644 --- a/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/ForeachCommand.java +++ b/src/main/java/com/denizenscript/denizencore/scripts/commands/queue/ForeachCommand.java @@ -36,7 +36,7 @@ public class ForeachCommand extends BracedCommand { // // @Usage // Use to run commands 'for each entry' in a list of objects/elements. - // - foreach li@e@123|n@424|p@bob: + // - foreach li@<[some_entity]>|<[some_npc]>|<[player]>: // - announce "There's something at <[value].location>!" // // @Usage