Skip to content

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.

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

Setting it up

LuckPerms

yaml
groups:
    default:
        permissions:
            - hanimationsworks.user.*
    staff:
        permissions:
            - hanimationsworks.admin.*

Player ranks build on top:

yaml
groups:
    vip:
        permissions:
            - hanimationsworks.user.*
            - hanimationsworks.vip # your own node, checked per-animation

World-specific

yaml
groups:
    lobby:
        worlds:
            lobby:
        permissions:
            - hanimationsworks.user.use: false

Per-animation permissions

An animation can require permission nodes of its own. In its event config:

yaml
animations:
    bubble_animation:
        mm-id: bubble_anim_join
        duration: 76
        permissions:
            - hanimationsworks.vip
            - some.other.node

A 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.

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:

yaml
animations:
    golden_sparkle:
        mm-id: golden_sparkle
        duration: 100
        permissions:
            - hanimationsworks.vip
yaml
# LuckPerms
groups:
    vip:
        permissions:
            - hanimationsworks.user.*
            - hanimationsworks.vip

VIPs see it in the menu and get it on events; everyone else does not see it at all.

Staff only

yaml
animations:
    admin_summon:
        mm-id: admin_summon
        duration: 120
        permissions:
            - hanimationsworks.admin

Checking 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:

  1. The animation's permissions: list, and whether they hold every node in it
  2. The animation's worlds: deny list — is the player in one of those worlds?
  3. disabled-worlds in config.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.