feat(protection): add configurable Strength effect
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Leaf
|
||||
|
||||
Leaf is a Spigot 26.2 plugin that lets non-aggressive players opt into visible Resistance protection.
|
||||
Leaf is a Spigot 26.2 plugin that lets non-aggressive players opt into visible Resistance and Strength protection.
|
||||
|
||||
The approved behavior is specified in the [OKF design bundle](design/index.md).
|
||||
|
||||
@@ -24,7 +24,8 @@ The plugin JAR is written to `build/libs/`.
|
||||
/leaf off
|
||||
/leaf status
|
||||
/leaf enabled <on|off>
|
||||
/leaf strength <1-5>
|
||||
/leaf effect <resistance|strength> <1-5>
|
||||
/leaf strength <1-5> # Deprecated Resistance alias
|
||||
/leaf player <name|uuid> status
|
||||
/leaf player <name|uuid> enabled <on|off>
|
||||
/leaf player <name|uuid> locked <on|off>
|
||||
@@ -36,7 +37,7 @@ Administrative commands require `leaf.admin`, granted to server operators by def
|
||||
|
||||
Leaf prefixes the standard Spigot display name (used by standard chat), player-list name, and a dedicated `leaf_protected` main-scoreboard team for overhead names. Legacy `&` color codes are supported. Leaf does not move players out of an existing scoreboard team, and per-viewer/custom scoreboards may not show its overhead prefix. Chat or tab-management plugins may replace Leaf's decorated names. During cleanup, Leaf removes exact copies of its configured prefix while preserving surrounding name formatting; another plugin should therefore not intentionally use identical prefix text.
|
||||
|
||||
Spigot identifies potion effects by type but does not expose their owning plugin. Leaf tracks the exact infinite, quiet Resistance effect it successfully installed and removes it only while the visible effect still matches. A distinct Resistance level, duration, or presentation is preserved. Spigot cannot distinguish an externally supplied effect with an identical fingerprint; Leaf therefore does not claim or later remove an identical effect that was already active when reconciliation ran.
|
||||
Spigot identifies potion effects by type but does not expose their owning plugin. Leaf tracks the exact infinite, quiet Resistance and Strength effects it successfully installed and removes them only while each visible effect still matches. A distinct level, duration, or presentation is preserved. Spigot cannot distinguish an externally supplied effect with an identical fingerprint; Leaf therefore does not claim or later remove an identical effect that was already active when reconciliation ran.
|
||||
|
||||
## Releases
|
||||
|
||||
|
||||
Reference in New Issue
Block a user