Permissions
The permission nodes hAnimationsWorks checks, what each one gates, and how per-animation permissions work.
hanimationsworks.user.* — players
Self-service: choosing your own animation, previewing it, and seeing what exists.
| Node | Grants | Default |
|---|---|---|
hanimationsworks.user.use |
/hanim picker, /hanim browse |
everyone |
hanimationsworks.user.editor |
/hanim editor |
everyone |
hanimationsworks.user.test |
/hanim test <animation> |
everyone |
hanimationsworks.user.list |
/hanim list |
everyone |
hanimationsworks.user.get |
/hanim get |
everyone |
hanimationsworks.user.set |
/hanim set <trigger> <animation> |
everyone |
hanimationsworks.user.clear |
/hanim clear <trigger> |
everyone |
All of them default to true. A fresh install behaves exactly as it did before permissions existed — every player has the full user group — but every command is now gated and configurable.
To keep the menus off a lobby, deny just hanimationsworks.user.use on that world with a permission plugin. Nobody has to be told they cannot use a command; it simply is not offered.
hanimationsworks.admin.* — staff
| Node | Grants | Default |
|---|---|---|
hanimationsworks.admin.reload |
/hanim reload |
op |
hanimationsworks.admin.play |
/hanim play <animation> |
op |
hanimationsworks.admin.play.others |
/hanim play … <player> |
op |
hanimationsworks.admin.set.others |
Setting another player's choice | op |
.play.others and .set.others are separate from their parents on purpose: giving someone the ability to preview an animation on themselves does not have to hand them the ability to do it to your VIP players.
Wildcards
| Node | Grants | Default |
|---|---|---|
hanimationsworks.* |
Everything above | everyone |
hanimationsworks.user.* |
The whole user group | everyone |
hanimationsworks.admin.* |
The whole admin group | op |
hanimationsworks.* expands to the admin children too. Granting it to a non-op group hands them reload and play-on-others as well. Give hanimationsworks.user.* to player groups, and reserve hanimationsworks.* for staff.
Setting it up
LuckPerms
groups:
default:
permissions:
- hanimationsworks.user.*
staff:
permissions:
- hanimationsworks.admin.*Player ranks build on top:
groups:
vip:
permissions:
- hanimationsworks.user.*
- hanimationsworks.vip # your own node, checked per-animationWorld-specific
groups:
lobby:
worlds:
lobby:
permissions:
- hanimationsworks.user.use: falsePer-animation permissions
An animation can require permission nodes of its own. In its event config:
animations:
bubble_animation:
mm-id: bubble_anim_join
duration: 76
permissions:
- hanimationsworks.vip
- some.other.nodeA player must hold all of them, not any one.
The same list decides two things, which is why the menu never lies:
- Visibility — an animation whose permissions you lack is not offered in the picker
- The play itself — it is refused even if triggered by a real event
So what you see in the menu is exactly what you can play.
Permissions are checked against the target player, not the sender. An admin previewing on someone else is refused if that player lacks the nodes — which is correct, since they would not see the animation in their own picker.
Empty list
Omitting permissions: means no gate — every player sees and can play the animation.
Common setups
Everyone gets everything
Grant nothing. The user group defaults to true, so every player already has every self-service command.
A paid tier
Give the animation a node and grant that node to your VIP rank:
animations:
golden_sparkle:
mm-id: golden_sparkle
duration: 100
permissions:
- hanimationsworks.vip# LuckPerms
groups:
vip:
permissions:
- hanimationsworks.user.*
- hanimationsworks.vipVIPs see it in the menu and get it on events; everyone else does not see it at all.
Staff only
animations:
admin_summon:
mm-id: admin_summon
duration: 120
permissions:
- hanimationsworks.adminChecking what a player has
The plugin never logs a permission refusal — it is a normal outcome, and logging it would let a player fill the console by spamming an animation they cannot see.
To find out why a player is not seeing an animation, check three things:
- The animation's
permissions:list, and whether they hold every node in it - The animation's
worlds:deny list — is the player in one of those worlds? disabled-worldsinconfig.yml— does it suppress animations globally?
If all three are clear, turn on debug: true and trigger it; the console will name the exact gate that refused.