Randomized player permissions

Discussion in 'Plugin Requests' started by kirbsrob, Nov 28, 2022.

Thread Status:
Not open for further replies.
  1. Offline

    kirbsrob

    Plugin category: Commands, Admin tools

    Minecraft version: 1.19.x

    Suggested name: RandomPerms

    What I want:

    Randomized player permissions every set interval or whenever there's a new server instance/server restart. Each player has their own set of random permissions, so one player might have /kick and /gamemode and another player might have /xp and /info.

    You can set default permissions players will get no matter what (for example, /help) and you can set what permissions you want to be randomized (you want to exclude commands like /op and /stop).

    There should also be an option that no player can have the same permissions as another player. If all the permissions have been taken, then the cycle just resets.


    Example config:

    Default-permissions:
    bukkit.command.help (automatically assigned every time)

    Random-permissions: (assigns permissions randomly)
    minecraft.tp.*
    invsee.invsee
    minecraft.kick

    Number-of-random-permissions: 1 (so for instance there is a 1 in 3 chance a player gets /tp)

    Randomize-interval: 1200 (in seconds, 0 means no interval)

    Randomize-on-restart: true

    Unique-permissions: true (all players have unique random permissions that no other player has, unless all the permissions are taken then the cycle can reset)

    (Also, if a player leaves the server, then their permissions can still stay on them for a set amount of time.)

    New-cycles-when-all-perms-taken: true (If all the perms are taken by players and new players are still joining, and if true, then it assigns random permissions to new players again. If false, then new players will not be assigned random permissions and only have be assigned default perms).

    Time-to-reset-permissions-after-logout: 600 (In seconds, so for example, after 10 minutes, they lose their random permissions and when they log back in, they will be assigned new permissions.



    I would prefer if the plugin was also a standalone permissions plugin, , but if this is too difficult, then it being an extension to other permissions plugins like LuckPerms can work.




    Ideas for commands: /randperms reload

    Ideas for permissions: randperms.reload, randperms.exempt (for admins, so the plugin does not override ops or admins)

    When I'd like it by: A week or two.
     
    Last edited: Nov 28, 2022
Thread Status:
Not open for further replies.

Share This Page