feat(protection): add configurable Strength effect
Release / release (push) Successful in 2m26s
CI / build (push) Successful in 56s

This commit is contained in:
dmg
2026-08-10 22:58:18 -04:00
parent e064c7398c
commit 5609a0a656
17 changed files with 279 additions and 71 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
# Whether Leaf protection is available server-wide.
enabled: true
# Visible Minecraft Resistance level (I-V).
# Visible Minecraft Resistance and Strength levels (I-V).
resistance-level: 1
strength-level: 1
# Legacy color codes are supported.
prefix: "&a🍃 "
@@ -10,6 +11,6 @@ prefix: "&a🍃 "
# Calendar-day onboarding window measured from first join.
onboarding-days: 7
welcome-message: "&aLeaf protection is available: /leaf on, /leaf off, or /leaf status. Attacking another player opts you out."
welcome-message: "&aLeaf Resistance and Strength are available: /leaf on, /leaf off, or /leaf status. Attacking another player opts you out."
combat-disabled-message: "&cLeaf protection was disabled because you attacked another player. You may use /leaf on again when permitted."
locked-message: "&cAn administrator locked your Leaf setting."
+2 -2
View File
@@ -2,12 +2,12 @@ name: Leaf
version: ${version}
main: games.dmg.leaf.LeafPlugin
api-version: "1.20"
description: Voluntary visible Resistance protection for non-aggressive players.
description: Voluntary visible Resistance and Strength protection for non-aggressive players.
author: dmg.games
commands:
leaf:
description: Control or administer Leaf protection.
usage: /leaf <on|off|status|enabled|strength|player>
usage: /leaf <on|off|status|enabled|effect|strength|player>
permissions:
leaf.use:
description: Allows a player to control their own Leaf protection.