Skip to content

Commit

Permalink
Changes to the Leash effect's Description and Examples. (SkriptLang#6528
Browse files Browse the repository at this point in the history
)

* Leash effect examples/description improved

* Added suggested changes.

* Missed one O_O

* Added Suggested changes.

* Update EffLeash.java

Co-authored-by: Ayham Al Ali <20037329+AyhamAl-Ali@users.noreply.github.com>

---------

Co-authored-by: Ayham Al Ali <20037329+AyhamAl-Ali@users.noreply.github.com>
Co-authored-by: Moderocky <admin@moderocky.com>
  • Loading branch information
3 people authored and sovdeeth committed Apr 18, 2024
1 parent e8f6052 commit a1de15a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/java/ch/njol/skript/effects/EffLeash.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@
import ch.njol.util.Kleenean;

@Name("Leash entities")
@Description("Leash living entities to other entities.")
@Examples("leash the player to the target entity")
@Description({
"Leash living entities to other entities. When trying to leash an Ender Dragon, Wither, Player, or a Bat, this effect will not work.",
"See <a href=\"https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/LivingEntity.html#setLeashHolder(org.bukkit.entity.Entity)\">Spigot's Javadocs for more info</a>."
})
@Examples({
"on right click:",
"\tleash event-entity to player",
"\tsend \"&aYou leashed &2%event-entity%!\" to player"
})
@Since("2.3")
public class EffLeash extends Effect {

Expand Down

0 comments on commit a1de15a

Please sign in to comment.