How do i make permissions for skywars ranks

Discussion in 'Plugin Help/Development/Requests' started by Nightmare_Axel, Dec 19, 2016.

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

    Nightmare_Axel

    Hi. I'm new to this server making but have already found out how to make a skywars game and lobby. But what i really want to do is make it so that one of my kits is accesible by only server moderators. I need to find out
    - how to make ranks that can be used towards kits
    - how to setup kits with a rank being only able to use that kit

    If this will help, here is the groups.yml and users.yml file in my GroupManager plugin, along with my kits.yml file with 1 basic kit that i want so that only a server moderator can use

    groups.yml:

    Code:
    # Group inheritance
    #
    # Any inherited groups prefixed with a g: are global groups
    # and are inherited from the GlobalGroups.yml.
    #
    # Groups without the g: prefix are groups local to this world
    # and are defined in the this groups.yml file.
    #
    # Local group inheritances define your promotion tree when using 'manpromote/mandemote'
    groups:
      default:
        default: true
        permissions:
        - serversigns.use
        - skywars.join
        - skywars.leave
        - skywars.lobby
        - skywars.version
        - skywars.status
      Admins:
        inheritance:
        - default
        permissions:
        - '*'
        - skywars.setloby
        - skywars.setportal
        - skywars.cancel
        - skywars.cfgdebug
        - skywars.setup
        - worldedit.*
        - worldguard.*
        - multiverse.*
        - serversigns.*
        - essentials.*
        - serversigns.*
        prefix: '&0[&4Admins&0]&7 '
      Moderators:
        default: false
        permissions:
        - serversigns.use
        - skywars.join
        - skywars.leave
        - skywars.lobby
        - skywars.version
        - skywars.status
        - skywars.kit.Enchanter
        prefix: '&0[&4Mod&0]&7 '
    users:
      Nightmare_Axel:
        group:
        - default
    users.yml

    Code:
    users:
      20cfe82d-30fd-4500-9218-6796af074982:
        lastname: Mini_MinerGaming
        group: IceBerg
        subgroups: []
        permissions:
        - groupmanager.noofflineperms
      618fb7a2-8fc3-413a-9023-4d899afd94e2:
        lastname: Arctic_Foxy
        group: Glacier
        subgroups: []
        permissions:
        - groupmanager.noofflineperms
      93f4fd90-338c-4149-ae71-1516bc669e42:
        lastname: Nightmare_Axel
        group: groupmanager.default
        subgroups: []
        permissions:
        - groupmanager.noofflineperms
    kits.yml

    Code:
    # ####### kits.yml #######
    #
    # Kit configuration
    # #
    # For documentation, please visit
    # https://dabo.guru/projects/skywars/configuring-kits
    # #########
    configuration-version: 2
    Enchanter:
      items:
      - type: ENCHANTMENT_TABLE
      - amount: 32
        type: EXP_BOTTLE
      - type: ENCHANTED_BOOK
      description: '&4A kit: &8Enchanter&4.'
      totem: ENCHANTMENT_TABLE
      permission: groupmanager.moderators

    I hope you are able to help, i would appreciate it if we could make this happen :)
     
    Last edited by a moderator: Dec 19, 2016
Thread Status:
Not open for further replies.

Share This Page