Skip to content

Commit 7863069

Browse files
committed
Add UnleashReason.LEASHED_GONE
1 parent c255012 commit 7863069

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/com/laytonsmith/abstraction/enums/MCUnleashReason.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public enum MCUnleashReason {
44
HOLDER_GONE,
55
PLAYER_UNLEASH,
66
DISTANCE,
7+
LEASHED_GONE,
78
SHEAR,
89
FIREWORK,
910
UNKNOWN

src/main/java/com/laytonsmith/core/events/drivers/EntityEvents.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,8 @@ public String docs() {
23972397
+ " This event is called when a leash is broken."
23982398
+ " {id: The entityID of the entity | type: The entity type of the entity"
23992399
+ " | reason: The reason the leash broke. Can be one of HOLDER_GONE, PLAYER_UNLEASH, DISTANCE,"
2400-
+ " SHEAR (Spigot-only 1.21.6+), FIREWORK (Spigot-only 1.21.6+), UNKNOWN}"
2400+
+ " LEASHED_GONE (Paper-only 26.1.2+), SHEAR (Spigot-only 1.21.6+), FIREWORK (Spigot-only 1.21.6+),"
2401+
+" UNKNOWN}"
24012402
+ " {}";
24022403
}
24032404

0 commit comments

Comments
 (0)