Mod on/off permession's

Discussion in 'Archived: Plugin Requests' started by Jesfriis, Mar 27, 2013.

  1. Offline


    Cold Be nice if SomBudy Cold make a plugin that

    marks a player when he is working as Mod Like:

    Player does a command /modwork

    the players nametag changes ex [Mod]

    Do a global message: Player is no Working as mod

    then he get acces to a permession list were the server admin can add bam kick (all the Permessions server admin think the player needs)

    and a Comand for turning it off agin = he cant use he's mod permession's
  2. Offline


    Sorry, I don't understand your request..
  3. Offline


    dam my english is bad were you from ?
  4. Offline


    Australia...Please actually explain what you want.
  5. Offline


    ad mod/admin plugin in handler so admins can turn mod on/off
  6. Offline


    "can turn mod on/off"

    So, you mean like so staff can take breaks from their job? I'l give it a shot...
  7. Offline


    mmh ye and when the player are Working he gets acces to a permession list for only him.
  8. Offline


  9. Offline


    Sweeet Nice !
  10. Offline


    I believe he wants to be able to toggle admin permissions on and off, probably because of plugin interaction issues admins have.

    I did this using PermissionsBukkit and MyCommand

    PermissionsBukkit offers the ability to change permissions groups in game. Technically, you could do this with just PermissionsBukkit but the command is rather long (something like /permissions player addgroup <player> <group>) so I used MyCommand to shorted it to /admin on and /admin off.

    In PermissionsBukkit, set up all the permissions in the admin group that you want your admin players to have while admin mode is "on".

    In MyCommand's commands.yml, alter two of the existing commands to look like this:
    command: /admin on
    type: runcommand
    runcmd: /permissions player addgroup $player admin
    command: /admin off
    type: runcommand
    runcmd: /permissions player removegroup $player admin
    Remember the # of the commands that you changed. You will use this later.
    I used /admin on and /admin off, but you could use whatever you want in their place.

    After you've set up the commands, you have to give your admin players permission to use the commands.
    Open PermissionsBukkit's config.yml and under the "users:" heading, list your admin players (there will be an example entry there to guide you).

    Give each admin player:
    permissions.*: true (this gives them permission to enter and leave the admin group at will, as well as access to all other PermissionsBukkit permissions)
    mycommand.cmd.#: true (where # is the number assigned to the command in MyCommand's "commands.yml")

    So for example, if your "/admin on" command (or whatever command you assigned) was listed as command number 4 in commands.yml, you would give your admin player's "mycommand.cmd.4: true" which would give them permission to use "/admin on"

    Do the same with your variation of /admin off.

    That's what I did, there may be something easier.

    Or that

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 31, 2016
  11. Offline


    Won't be able to make it; use what MCHaxin said.
  12. Offline


    Toss me a message if you need any help setting it up.

Share This Page