# Version 0.0.2.2
## Introduction
Now you can use a leash to tie up players or even tie yourself. Why not try tying each other up to complete Minecraft?
You can:
1. Use a leash to tie up players.
2. Tie yourself to a fence when no entities are tied to the leash.
3. Use commands to obtain and adjust the length of a player's leash.
4. There are now game rules to decide whether a leashed player can be teleported along with the leash holder when teleporting.
## Commands
* `/lp leash length [<player>] set <length>` - Set the leash length for the player.[If `<player>` is empty,it refers to the command executor, `<length>` should be a floating-point number between 5 and 1024.]
* `/lp leash length [<player>] [get]` - Display the leash length of the player.[If `<player>` is empty, it refers to the command executor, `[get]` can be omitted.]
* `/lp leash data [<player>] set <entity>/<block coordinates>` - Set the player's leash data,binding it to `<entity>` or a leash knot entity on a fence at `<block coordinates>`.
* `/lp leash data [<player>] [get]` - Display the player's leash data.[If `<player>` is empty, it refers to the command executor, `[get]` can be omitted.]
## Game Rules
* `LP.TeleportWithLeashedPlayers` - When this rule is enabled, leashed players will be teleported along with the leash holder. [Default value: True]
* `LP.CreateLeashFenceKnotEntityIfAbsent` - When this rule is enabled, if there is no leash knot entity on the corresponding fence block when setting leashData, this entity will be automatically created and bound. [Default value: True]
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }