diff --git a/plugin/src/main/java/net/aufdemrand/denizen/flags/FlagManager.java b/plugin/src/main/java/net/aufdemrand/denizen/flags/FlagManager.java index 7eba17d15b..11c9cbef93 100644 --- a/plugin/src/main/java/net/aufdemrand/denizen/flags/FlagManager.java +++ b/plugin/src/main/java/net/aufdemrand/denizen/flags/FlagManager.java @@ -77,7 +77,7 @@ // # Inside the loop, check if the player's flag 'completed' contains in it an element named 'beginners tutorial'. // # If it does, increment the server flag 'completes_counter' by one, and give it 10 seconds to live. // - foreach { -// - if <%value%.flag[completed].as_list> contains 'beginners tutorial' +// - if contains 'beginners tutorial' // flag server completes_counter:++ duration:10s // } // # Now show the number of players who had the element in their 'completed' flag. @@ -91,7 +91,7 @@ // // - flag friends:->: // - foreach { -// - chat t:%value% 'You are my friend!' +// - chat t:def[value] 'You are my friend!' // } // // diff --git a/plugin/src/main/java/net/aufdemrand/denizen/scripts/commands/BukkitCommandRegistry.java b/plugin/src/main/java/net/aufdemrand/denizen/scripts/commands/BukkitCommandRegistry.java index 5ca7adf7e7..7dcf6d7ff8 100644 --- a/plugin/src/main/java/net/aufdemrand/denizen/scripts/commands/BukkitCommandRegistry.java +++ b/plugin/src/main/java/net/aufdemrand/denizen/scripts/commands/BukkitCommandRegistry.java @@ -840,28 +840,28 @@ public void registerCoreMembers() { // <--[command] // @Name CopyBlock - // @Syntax copyblock [] [to:] (remove_original) + // @Syntax copyblock [/] [to:] (remove_original) // @Required 1 // @Stable unstable - // @Short Copies a block to another location, keeping metadata when possible. + // @Short Copies a block or cuboid to another location, keeping metadata when possible. // @Author aufdemrand, David Cernat // @Group world // // @Description - // Copies a single block to another location. - // Does not appear to support most inventories, e.g; Chest, Furnaces, Droppers - // (Signs/Spawners/Jukeboxes are supported) - // (Does not support cuboids - use '<@link command schematic> command) + // Copies a block or cuboid to another location. + // You may also use the 'remove_original' argument to delete the original block. + // This effectively moves the block to the target location. + // // @Tags // // // @Usage // Use to copy the block the player is looking at to their current location - // - copyblock to: + // - copyblock to: // // @Usage // Use to move the block the player is looking at to their current location (removing it from its original location) - // - copyblock to: remove_original + // - copyblock to: remove_original // --> registerCoreMember(CopyBlockCommand.class, "COPYBLOCK", "copyblock [/] [to:] (remove_original)", 1); @@ -1497,7 +1497,7 @@ public void registerCoreMembers() { // Causes an NPC to begin fishing at the specified location. // Setting catch determines what items the NPC may fish up, and // the chance is the odds of the NPC fishing up an item. - // (It appears the catch type currently does not do anything) + // Catch // Also note that it seems you must specify the same location initially chosen for the NPC to fish at // when stopping it. // @@ -1506,11 +1506,11 @@ public void registerCoreMembers() { // // @Usage // Makes the NPC throw their fishing line out to where the player is looking, with a 50% chance of catching fish - // - fish catch:fish chance:50 + // - fish catch:fish chance:50 // // @Usage // Makes the NPC stop fishing - // - fish stop + // - fish stop // --> registerCoreMember(FishCommand.class, "FISH", "fish [] (catch:{none}/default/junk/treasure/fish) (stop) (chance:<#>)", 1); @@ -1528,19 +1528,17 @@ public void registerCoreMembers() { // @Description // The flag command sets or modifies custom value storage database entries connected to // each player, each NPC, each entity, and the server. - // All the flag values are stored default in "plugins/denizen/saves.yml" file. + // Flags can have operations performed upon them, such as: + // - flag player counter:++ (Adds 1 to the flag) + // - flag player counter:+:3 (Adds 3 to the flag) + // - flag player counter:-:2 (Remove 2 from the flag) + // + // See <@link language flags> for more info. + // + // All the flag values are stored by default in "plugins/denizen/saves.yml" file. // For an alternative way of storing values, use either yaml (See <@link command yaml>) // or sql (See <@link command sql>) - // Besides being set, flags can be incremented or decremented (added to or subtracted from). - // E.g. - // - flag player counter:++ or - flag player counter:-- - // Which adds or subtracts 1 from the player flag "counter". - // - // To add or subtract more than one, the action is "+" or "-", written as so: - // - flag player counter:+:10 - // Which adds 10 the the "counter" flag. // - // See <@link language flags> for more info. // // @Tags // ]> @@ -1690,7 +1688,7 @@ public void registerCoreMembers() { // Note: Be careful, gamerules are CASE SENSITIVE. // // @Tags - // No tags currently exist + // TODO: Add tags and then document them! // // @Usage // Use to disable fire spreading in world "Adventure". @@ -1782,7 +1780,7 @@ public void registerCoreMembers() { // @Syntax group [add/remove/set] [] () // @Required 2 // @Stable stable - // @Short Adds a player to, removes a player from or sets a players permissions group. + // @Short Adds a player to, removes a player from or sets a player's permissions group. // @Author GnomeffinWay // @Group player // @Plugin Vault @@ -1942,8 +1940,6 @@ public void registerCoreMembers() { // // Does a specified amount of damage usually, but, if no damage is specified, does precisely 1HP worth of damage // (half a heart). - // - // // Optionally, specify (source:) to make the system treat that entity as the attacker, // be warned this does not always work as intended, and is liable to glitch. // You may also optionally specify a damage cause to fire a proper damage event with the given cause, @@ -2040,7 +2036,7 @@ public void registerCoreMembers() { // // @Description // Injects a script into the current ScriptQueue. - // This means this task will run with all of the queues associated definitions and tags. + // This means this task will run with all of the original queue's definitions and tags. // It will also now be part of the queue, so any delays or definitions used in the injected script will be // accessible in the original queue. // @@ -2048,8 +2044,8 @@ public void registerCoreMembers() { // None // // @Usage - // - inject InjectedTask // Injects the InjectedTask task into the current queue + // - inject InjectedTask // --> registerCoreMember(InjectCommand.class, "INJECT", "inject (locally) [