From 93bedf89955fdb71ad5a4c082f36110280c1be4c Mon Sep 17 00:00:00 2001 From: Mwthorn Date: Mon, 30 Jan 2017 16:39:50 +0100 Subject: [PATCH] Filling in documentation (#79) * Add more description to flag command note that the description is still not fully described. * Added more usage for modifyblock command * Added description and usage for take command * better english sentences * changed links to use correct link format * Added further description and usage for give cmd Please note that the description is not fully complete. Needs more words about "Engrave" which I currently have no idea what that does. * forgot this here... in give cmd * added usage for playeffect command * changed typo from exact to exactly. * Changed to fit effect name correctly --- .../commands/BukkitCommandRegistry.java | 52 ++++++++++++++++--- 1 file changed, 46 insertions(+), 6 deletions(-) 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 c4b9aa1b7d..dd41ddcc40 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 @@ -1460,6 +1460,9 @@ 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. + // For an alternative way of storing values, use either yaml (See <@link command yaml>) + // or sql (See <@link command sql>) // TODO: Document Command Details // // @Tags @@ -1615,6 +1618,11 @@ public void registerCoreMembers() { // // @Description // Gives the linked player or inventory any form of giveable object, including items, xp, or money. + // If the player's inventory if full, the item will be dropped at the inventory location. + // Specifying a slot will give the player the item to that slot. + // If an item is already in that slot, the item will not be given + // unless they are exactly the same items, then it will stack. + // If an economy is registered, specifying money instead of a item will give money to the player's economy. // TODO: Document Command Details // // @Tags @@ -1630,7 +1638,11 @@ public void registerCoreMembers() { // // @Usage // Use to give an item to the player. - // - give i@iron_sword quantity:1 + // - give i@iron_sword + // + // @Usage + // Use to give an item and place it in a specific slot if possible. + // - give WATCH slot:5 // --> registerCoreMember(GiveCommand.class, "GIVE", "give [money/xp/|...] (qty:<#>) (engrave) (to:) (slot:<#>)", 1); @@ -2425,7 +2437,12 @@ public void registerCoreMembers() { // - modifyblock cu@| li@stone|dirt li@25|25 // // @Usage - // TODO: Document Command Details + // Use to clear the area around the player and drop their respective items. + // - modifyblock air radius:5 naturally delayed + // + // @Usage + // Use to modify the ground beneath the player's feet. + // - modifyblock cu@| WOOL,14 // --> registerCoreMember(ModifyBlockCommand.class, "MODIFYBLOCK", "modifyblock [|...//] [|...] (radius:<#>) (height:<#>) (depth:<#>) (no_physics/naturally) (delayed) (