[INACTIVE][ADMN/MISC] Roles - The user-driven group selection plugin [440-531]

Discussion in 'Inactive/Unsupported Plugins' started by AnjoCaido, Mar 9, 2011.

  1. Offline

    AnjoCaido

    Roles - The user-driven group selection plugin.
    Version: v1.1

    You need at least GroupManager 1.0 alpha-5 to use this!

    Features:
    • Easy role categorization
    • Good integration with GroupManager
    • Let your users choose their roles in server, such as:factions, jobs, skills and etc. No need to do it for them.
    • Time based "leave", so your users can't join-leave groups all the time. They need to wait the amount of hours you choose to leave a role.
    • Multiworld support!

    Commands:
    Code:
    commands:
      joinrole:
        description: Join a role of your choice.
        usage: /<command> [category] [group]
        permission: roles.joinrole
      leaverole:
        description: Leave a role of your choice.
        usage: /<command> [category] [group]
        permission: roles.leaverole
      myroles:
        description: List roles you have.
        usage: /<command> [category]
        permission: roles.myroles
      whoroles:
        description: List somebody else roles.
        usage: /<command> <player> [category]
        permission: roles.whoroles
      roles:
        description: Reload Roles configuration
        usage: /<command>
        permission: roles.roles
    This system is quite simple, yet functional. Hope it fits most people needs.
    All commands can be done only by players.

    All groups are added as a user subGroup, except when the user join a role of the main category. Those roles really change the user group when joined.

    Config file:
    Code:
    world:
        categories:
            faction:
                limit: 1
                time: 168
            job:
                limit: 1
                time: 24
            subjob:
                limit: 2
                time: 12
            skill:
                limit: 4
                time: 1
        setting:
            defaultgroup: Peasant
            maincategory: faction
    
    world is the world name. This plugin respects GM mirroring, so the name of the world must be the the same of the real world which you have data on GroupManager.
    faction,job,subjob,skill are the categories that you use on group specification. You can create as many as you want like that.(use always lower case, please)
    limit is the quantity of roles of that category each user can join in. subjob is 2, so everyuser can join in two subjobs role.
    time is the amount of time, in hours, a player need to wait before leaving a group that he joined of such category. The usual is the bigger the role, the bigger the time. No need to explain that.
    maincategory You can optionally set a category for users to choose their main groups. When a group change a role of main category, he will have his prefix, suffix, build and other variables affected, just like he get physically changed groups(instead of subgrouping).
    defaultgroup will tell Roles to which group should take a user if he leaves a group of the main category. So if you leave your faction, you will be redirected to Peasant group. No need for this if you don't use main category.

    Got it! So, where are the groups?
    In your GroupManager… for every group, there are special variables you put in them, where Roles will read and decide what to do.

    These nodes go inside the INFO node for every group you want to set as a Role.
    roles-category: faction - Type accepted: String - Explanation: this is setting a group for a role called faction
    roles-requirement: Miner - Type accepted: List/String - Explanation: this telling you that for you to join this role, you must have joined a role(group) called Miner.
    Every entry of the list is considered a full requirement, so you just need to fulfill one of the requirements to be able to join.
    Example:
    Code:
    roles-requirement:
      - BlueFaction
      - RedFaction
    To enforce multiple roles as requirement, you put role names in same entry separated by the character '&', just like this:
    Code:
    roles-requirement: Fighter&SuperCart
    Example of groups.yml file on GroupManager, using Roles:
    Code:
    groups:
      Default:
        default: true
        permissions:
        - essentials.help
        - essentials.home
        - essentials.motd
        - essentials.sethome
        - essentials.spawn
        inheritance: []
        info:
          prefix: ''
          build: false
          suffix: ''
      SemiAdmin:
        default: false
        permissions:
        - +groupmanager.mandemote
        - +groupmanager.manpromote
        - -groupmanager.*
        - '*'
        inheritance:
        - moderator
        info:
          prefix: '&c'
          build: true
          suffix: SemiAdmin
      RedFaction:
        default: false
        permissions: []
        inheritance:
        - peasant
        info:
          prefix: '&c'
          roles-category: faction
          build: true
          suffix: Red
      Farmer:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.farmer
        - essentials.spawnmob
        inheritance: []
        info:
          roles-requirement:
          - BlueFaction
          - RedFaction
          prefix: ''
          roles-category: job
          build: false
          suffix: ''
      Healer:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.healer
        - essentials.heal
        inheritance: []
        info:
          roles-requirement:
          - BlueFaction
          - RedFaction
          prefix: ''
          roles-category: job
          build: false
          suffix: ''
      Fighter:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.fighter
        inheritance: []
        info:
          prefix: ''
          roles-category: skill
          build: false
          suffix: ''
      Admin:
        default: false
        permissions:
        - '*'
        inheritance:
        - semiadmin
        info:
          prefix: ''
          build: true
          suffix: ''
      Miner:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.miner
        - flashlight.regular
        inheritance: []
        info:
          roles-requirement:
          - BlueFaction
          - RedFaction
          prefix: ''
          roles-category: job
          build: false
          suffix: ''
      FlyingMan:
        default: false
        permissions:
        - nocheat.moving
        inheritance: []
        info:
          roles-requirement: Fighter&SuperCart
          prefix: ''
          roles-category: skill
          build: false
          suffix: ''
      Peasant:
        default: false
        permissions:
        - roles.joinrole
        - roles.leaverole
        - roles.myroles
        inheritance:
        - default
        info:
          prefix: '&e'
          build: true
          suffix: Peasant
      BlueFaction:
        default: false
        permissions: []
        inheritance:
        - peasant
        info:
          prefix: '&d'
          roles-category: faction
          build: true
          suffix: Blue
      Railer:
        default: false
        permissions:
        - essentials.kit
        - essentials.kit.railer
        inheritance: []
        info:
          roles-requirement: Miner
          prefix: ''
          roles-category: subjob
          build: false
          suffix: ''
      SuperCart:
        default: false
        permissions:
        - minecartmania.*
        inheritance: []
        info:
          roles-requirement: Railer
          prefix: ''
          roles-category: skill
          build: false
          suffix: ''
      Moderator:
        default: false
        permissions:
        - essentials.tp
        - essentials.tphere
        - essentials.item
        - essentials.give
        inheritance:
        - default
        info:
          prefix: '&c'
          build: true
          suffix: Mod
    Latest Build Download:
    https://github.com/downloads/gmcouto/Roles/Roles.jar

    Changelog:
    Version 1.1
    • Fixed a bug ClassNotFound exception with newer CB builds.

    ===========================================
    Source:
    https://github.com/gmcouto/Roles
     
    ElkStalker likes this.
  2. Offline

    Juze

    Please update to latest RB for releases.
     
  3. Offline

    diegokilla

    Well, this still runs fine on CB670, if anyone was curious...
     
  4. Offline

    jeddeliso

    why is this inactive?
     
  5. Offline

    RomaClanServer

    Fork please
     
  6. Offline

    kahlilnc

    Does this work with permissions?
     
  7. Offline

    diegokilla

    nope, groupmanager only
     
  8. Offline

    Brekkjern

    I really wish this worked with permissions :S Also, if anyone would want to make a similar plugin it would be great!
     
  9. Offline

    diegokilla

    RIP groupmanager&roles :( :( :(
    CB400's - CB928
     
  10. Offline

    diegokilla

    If anyone still uses this & groupmamager, and CB928 broke things for you...
    open up the groupmanager.jar and edit the plugin.yml to look like this:

    name: GroupManager
    version: 1.0(alpha-5)
    main: org.anjocaido.groupmanager.GroupManager
    website: http://www.anjocaido.info/
    description: Provides on-the-fly system for Permission system created by Nijikokun. But all in memory, and with flat-file saving schedule.
    load: startup
    authors:
    - AnjoCaido
    - Gabriel Couto
    commands:
    <then all the commands n stuff go here, just leave it all the same)
     
  11. Offline

    Radza

    Crafbukkit - 928
    for groups - EssentialsGroupManager and EssentialsGroupBridge

    and your plugins still works. Not tochange anything.

    2011-06-28 18:58:03 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-889-g22f4388-b928jnks (MC: 1.6.6)
    2011-06-28 18:58:07 [INFO] Roles version 1.1 was enabled!

    But still i have 1 litle problem. I need iconomi support for buyng roles. Example
    /joinrole status citizen - maingroup
    /joinrole job woodcutter - subgroup
    i want that to chose a subgroup, it cost :/

    and another, it will be cool if subgroups have item/block whitelist, like only woodcutter subgroup can destroy logs and woodplanks and only thei can use axes.

    I know you already bured your project, but still... i hope you cosider it ;)

    Thanks for helpfull plugin.
     
  12. Offline

    OrtwinS

    Still works with GM on build 1060, though someone should make something like this for PEX.
     
    Thequickthinkin likes this.
  13. Offline

    Thequickthinkin

  14. Offline

    BugSpreadeR

Share This Page