sjavi4 / PlayerDoll

Fake Player Plugin for Spigot Paper Folia
38 stars 1 forks source link

How to give player permissions to access all GUI functions? #66

Closed chinese-wzq closed 3 months ago

chinese-wzq commented 3 months ago

I've give every player the following permissions in GroupManager:

    - playerdoll.doll
    - playerdoll.group.doll
    - playerdoll.group.basic
    - playerdoll.group.container
    - playerdoll.group.movement
    - playerdoll.group.action
    - playerdoll.group.datacontrol
    - playerdoll.group.manage
    - playerdoll.globalflag.glow
    - playerdoll.globalflag.gravity
    - playerdoll.globalflag.hostility
    - playerdoll.globalflag.hide_from_list
    - playerdoll.globalflag.invulnerable
    - playerdoll.globalflag.join_at_start
    - playerdoll.globalflag.large_step_size
    - playerdoll.globalflag.phantom
    - playerdoll.globalflag.pickable
    - playerdoll.globalflag.pushable
    - playerdoll.globalflag.real_player_tick_update
    - playerdoll.globalflag.real_player_tick_action
    - playerdoll.personalflag.admin
    - playerdoll.personalflag.attack
    - playerdoll.personalflag.despawn
    - playerdoll.personalflag.dismount
    - playerdoll.personalflag.drop
    - playerdoll.personalflag.echest
    - playerdoll.personalflag.exp
    - playerdoll.personalflag.gset
    - playerdoll.personalflag.hidden
    - playerdoll.personalflag.inv
    - playerdoll.personalflag.jump
    - playerdoll.personalflag.look
    - playerdoll.personalflag.lookat
    - playerdoll.personalflag.menu
    - playerdoll.personalflag.mount
    - playerdoll.personalflag.move
    - playerdoll.personalflag.pset
    - playerdoll.personalflag.set
    - playerdoll.personalflag.slot
    - playerdoll.personalflag.sneak
    - playerdoll.personalflag.spawn
    - playerdoll.personalflag.sprint
    - playerdoll.personalflag.stop
    - playerdoll.personalflag.strafe
    - playerdoll.personalflag.swap
    - playerdoll.personalflag.tp
    - playerdoll.personalflag.turn
    - playerdoll.personalflag.unsneak
    - playerdoll.personalflag.unsprint
    - playerdoll.personalflag.use

But players still don't have permissions to click globalset button, personalset button, and a bunch of other buttons.Also, sneak and right-click to open menu also doesn't work.

All the above will output messages no-permission which is set in server/config/paper-global.yml Current Purpur Version: 1.21-2268-eadfff7 (MC: 1.21)*

sjavi4 commented 3 months ago

There are 2 sets of systems, The Command permission, and the Doll access.

Setting the permission list would allow player to use the command, but still being restricted by Doll access.

And Doll access have to be owner of Doll, being Pset (sharing access), or bypassed by dollmanage command (OP command).

Player with permission and being Pset to the specific flag, ie Admin Flag (all access), can perform command to the Doll.

Have a look to Readme

Although some per-player setting can be set to true for specific players, they still need permission to perform those action.

You must give the permission access to player, and through Doll pset to allow certain player to do specific actions.

chinese-wzq commented 3 months ago

I mean players have permissions to execute all commands in chatbox except when trying to do the same thing in GUI.

sjavi4 commented 3 months ago

https://modrinth.com/plugin/playerdoll/version/6IXHw6oX

Should Fix

chinese-wzq commented 3 months ago

Seems work well! Thanks!