randombyte-developer/command-utils

Feature to ignore permissions

galoti opened this issue · 5 comments

Just a suggestion to add something like the IgnoredPermissions from Virtual Chest, useful to players only commands

     IgnoredPermissions=[
             "plugin1.permission1"
             "plugin2.permission2"
     ]  

I don't like that system of temporarily giving and then revoking permissions. Which plugin and commands do you specifically want the player to be able to execute? I think those plugins should add a way to execute commands in the name of a player.

/cf entity-spawn from GriefPrevention. With GP it's not possible execute /cf from console, so my idea was auto execute some alias with ignoredpermissions in the moment some player enters the claim

Try doing something like this (I don't know the exact commands)

yourAlias {
  commands = [
    "*lp user %player% permission set gp.perm true",
    "cf ...."
    "*lp user %player% permission unset gp.perm"
  ]
}

That grants the player the permissions and then resets it. I hope this works in this regard that it then falls back to the group the player is in. So for that short time the player has elevated permissions. Maybe that works.

Or try temp permission like so

commands = [
  "*lp user %player% permission settemp gp.permission true 1s",
  "cf ...."
  "*lp user %player% permission unsettemp gp.permission"
]

Ok, I will try temp perms. Thanks o/

Closing due to inactivity.