Skip to content

Commit

Permalink
spawn command required args and meta fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 20, 2020
1 parent 31ecf00 commit d13d392
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Expand Up @@ -33,7 +33,7 @@ public class TradeTag implements ObjectTag, Adjustable {
// has_xp=true/false
//
// For example, the following command opens a virtual merchant inventory with two merchant trades.
// The first trade offers a sponge for two emeralds for a sponge, can be used up to 10 times,
// The first trade offers a sponge for two emeralds, can be used up to 10 times,
// and offers XP upon a successful transaction.
// The second trade has zero maximum uses and displays a barrier.
// <code>
Expand Down
Expand Up @@ -20,23 +20,23 @@ public class SpawnCommand extends AbstractCommand {

public SpawnCommand() {
setName("spawn");
setSyntax("spawn [<entity>|...] [<location>] (target:<entity>) (persistent)");
setRequiredArguments(2, 4);
setSyntax("spawn [<entity>|...] (<location>) (target:<entity>) (persistent)");
setRequiredArguments(1, 4);
}

// <--[command]
// @Name Spawn
// @Syntax spawn [<entity>|...] [<location>] (target:<entity>) (persistent)
// @Required 2
// @Syntax spawn [<entity>|...] (<location>) (target:<entity>) (persistent)
// @Required 1
// @Maximum 4
// @Short Spawns a list of entities at a certain location.
// @Group entity
//
// @Description
// Spawn an entity or list of entities at the specified location. Accepts the 'target:<entity>' argument which
// will cause all spawned entities to follow and attack the targetted entity.
// will cause all spawned entities to follow and attack the targeted entity.
// If the persistent argument is present, the entity will not despawn when no players are within range, causing
// the enity to remain until killed.
// the entity to remain until killed.
//
// @Tags
// <EntityTag.is_spawned>
Expand Down

0 comments on commit d13d392

Please sign in to comment.