Inactive [ADMN/INFO] GroupManager v1.0 alpha-3 - A Permissions replacement [440-531]

Discussion in 'Inactive/Unsupported Plugins' started by AnjoCaido, Feb 17, 2011.

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

    AnjoCaido

    GroupManager - The Permissions 2.x plugin sucessor.
    Version: v1.0 alpha-5

    Yes, it has multiworld and multigroup users support now. When 1.0 final release, next step is database (SQLite/MySQL).

    ---

    If you use Essentials:
    - Don't use both EssentialsGroupManager.jar and GroupManager.jar! Just choose one, because they are the same!
    - Don't use both EssentialsGroupBridge.jar and FakePermissions.jar! Just choose one, because they are the same!


    ---

    As the growth of this plugin is getting faster and faster, I needed to put multiword support the soon as I could.
    Now it's here. And GroupManager is keeping all of it's good stuff! Did I say it is going to bring a lot more of new stuff too?

    Purpose of the plugin:
    The purpose has changed. Permissions got better. But it still not enough. Why I did, and keep doing this?
    I started it thinking that it would make me happy. Now it's because it will make YOU happy.

    Advantages against Permissions:
    • User multigroup support.
    • Full command list to change anything during game or thru the console.
    • Good API to change things. You to change a player group you can do getPlayer(name).setGroup(getGroup(name))
    • Exception nodes.
    • It separates groups files from users files.

    New Features:
    • User multigroup support(yay!)
    • Multiworld support(meh).
    • It has world permission mirroring(you can make a world nether having the same permissions of world2 instead of default world1).
    • It saves only the files that will have contents changed.
    • It separates groups files from users files.
    • It cleans old backup files older than 24h.

    Previous Features(included):
    • It has the same file format as Permissions, no need to get used with anything new.
    • It comes with a fake Permissions plugin, that attaches GroupManager to all your permissions dependent plugins. No need to make any changes, nor update other plugins. Just adjust your permissions files and GO!
    • Commands to change users permissions are REALLY on-the-fly(no touching files).
    • It saves the permissions data periodically.
    • It backups every file before overwrites.
    • Tons of commands for complete user/group/permission management during game/console.
    • It has a fantastic temporary permissions system, that let's you to make changes in users, with the possibility to go back at any time(and it never is saved on files).
    • Negative nodes(aka '-'): You can take off specific permissions from users that have a full set.
    • Exception node(aka '+'): Used when a user/group has a set of negative nodes, and you want to allow a specific one.

    User's subgroups: a brief explanation
    You can see on the file structure(down here on same post), that users have an optional node called subgroups. That node is a list, just like "permissions" node. There you can list a user subgroup, it can be as many as you want.
    What a user inherits from subgroups? Only permissions. It means nothing on a subgroup's info node(prefix, suffix, build and other variables) will be considered.
    The user will still be considered as a member of that group, but will only inherits it's permissions, like some commands, kits, etc.

    This reduces the needs of a nest of groups inheriting each other.
    You can have one user in Peasant group, which has only some basics, and them let him join in Miner as a subgroup, where he can get Miner kits, or other related to miner group.
    Later, when your town needs a railer, you can just add the group Railer to him as subgroup, and he will have both things at same time. When the job is done, you just remove the subgroup.
    This gets even more interesting when you have groups related to towns, factions, teams… etc.

    World mirroring: a brief explanation
    Let's say you have a config file like this:
    Code:
    settings:
      data:
        save:
          minutes: 10
      logging:
        level: INFO
      permission:
        world:
          mirror:
            world1:
              - world2
              - world3
            world4:
              - world5
    It means that all your permissions of world2, and world3 will be the same of world1. And it means all permissions of world5 will be the same of world4.
    It won't copy any file. In fact, it won't matter if there is files for world2… when the permissions get load, every request for world2 will be redirected for world3. Simple as that.

    If no mirroring is specified, any world not loaded will automatically mirror the default world of the server.

    File structure: a brief explanation
    The files read for GroupManager 1.0+ for data management are two files per world. The users file are users.yml. The groups file are groups.yml.
    The thing is that those files are located in:
    plugins/GroupManager/worlds/WORLDNAME

    So the file structure for the world called anjoCaidoWorld and netherWorld will be:
    plugins/GroupManager/worlds/anjoCaidoWorld/groups.yml
    plugins/GroupManager/worlds/anjoCaidoWorld/users.yml
    plugins/GroupManager/worlds/netherWorld/groups.yml
    plugins/GroupManager/worlds/netherWorld/users.yml

    The files might look like this:
    groups.yml
    Code:
    groups:
        Admins:
            default: false
            info:
                build: false
                prefix: ''
                suffix: ''
            inheritance:
            - SemiAdmin
            permissions:
            - '*'
        Default:
            default: true
            info:
                build: false
                prefix: ''
                suffix: ''
            inheritance: []
            permissions:
            - essentials.spawn
            - essentials.motd
            - essentials.help
            - essentials.home
            - essentials.sethome
        Moderator:
            default: false
            info:
                build: false
                prefix: '&c'
                suffix: 'Mod'
            inheritance:
            - Default
            permissions:
            - essentials.tp
            - essentials.tphere
            - essentials.item
            - essentials.give
        SemiAdmin:
            default: false
            info:
                build: false
                prefix: '&c'
                suffix: 'SemiAdmin'
            inheritance:
            - Moderator
            permissions:
            - +groupmanager.mandemote
            - +groupmanager.manpromote
            - -groupmanager.*
            - '*'
        Peasant:
            default: true
            info:
                build: false
                prefix: '&e'
                suffix: 'Peasant'
            inheritance:
            - Default
            permissions: []
        Miner:
            default: false
            info:
                build: false
                prefix: ''
                suffix: ''
            inheritance:
            permissions:
            - essentials.kit
            - essentials.kit.miner
            - flashlight.regular
        Healer:
            default: false
            info:
                build: false
                prefix: ''
                suffix: ''
            inheritance:
            permissions:
            - essentials.kit
            - essentials.kit.healer
            - essentials.heal
        Farmer:
            default: false
            info:
                build: false
                prefix: ''
                suffix: ''
            inheritance:
            permissions:
            - essentials.kit
            - essentials.kit.farmer
            - essentials.spawnmob
        Railer:
            default: false
            info:
                build: false
                prefix: ''
                suffix: ''
            inheritance:
            permissions:
            - essentials.kit
            - essentials.kit.railer
    users.yml
    Code:
    users:
        anjocaido:
            group: Admins
            info:
                prefix: '&c'
                suffix: King
            permissions: []
        gmcouto:
            group: SemiAdmin
            permissions: []
        zenexer:
            group: Moderator
            permissions:
            - essentials.god
        aMiner:
            group: Peasant
            info:
                prefix: '&d'
                suffix: Miner
            permissions: []
            subgroups:
              - Miner
        aHealer:
            group: Peasant
            info:
                prefix: '&d'
                suffix: Healer
            permissions: []
            subgroups:
              - Healer
        aFarmer:
            group: Peasant
            info:
                prefix: '&d'
                suffix: Farmer
            permissions: []
            subgroups:
              - Farmer
        tempRailer:
            group: Peasant
            info:
                prefix: '&d'
                suffix: Miner
            permissions: []
            subgroups:
              - Miner
              - Railer
    You can see that the node structure are exactly the same used for GroupManager 0.99d(-) and Permissions, it means you can use the same files here.
    Note: Every node that doesn't make part of the respective file is ignored. So if you are migrating from older GroupManager or Permissions you can just duplicate your files as groups.yml and users.yml. When comes the time where is needed to save the file, all unused data for each file will be discarded. So you don't need to split files, just duplicate them with correct names, it will work.

    Negative and Exception nodes: a brief explanation
    Let's say you have a group SemiAdmin like this.
    Code:
    groups:
      SemiAdmin:
        default: false
        permissions: [+groupmanager.manpromote, -groupmanager.*,
          '*']
        inheritance: [Moderator]
        info: {prefix: '', build: false, suffix: ''}
    You should read this way:
    '*' -> means this group will have access to all commands.
    '-groupmanager.*' -> Where all his commands of groupmanager where removed.
    '+groupmanager.manpromote' -> Except manpromote.

    It means he can do everything that is not of GroupManager, AND manpromote.

    It's like listing essentials.*, worldedit.*, worldprotect.*, everyotherthing.* and groupmanager.manpromote.

    It gives a very big flexibility on permissions.

    Note:
    For every level of inheritance,
    Every permission starting with '+' is tested first. Then comes permissions starting with '-'. Then comes normal permissions(including '*').

    Commands:
    • Now on multiword support, every command will act only on the selected world.
    • If none/invalid world is selected, it will run on the default world.
    • If the world selected is a mirrored world, it will work on the mirror world.
    (on next version, when a command involves a player, there will be a toggle that will automatically act on the victim(player) world is in)
    Code:
    commands:
      manuadd:
        description: Move a player to desired group.(Adds to the file if not exists)
        usage: /<command> <player> <group>
        permission: groupmanager.manuadd
      manudel:
        description: Remove any user specific configuration. Make him default group.
        usage: /<command> <player>
        permission: groupmanager.manudel
      manuaddsub:
        description: Add a group to a player's subgroup list.
        usage: /<command> <player> <group>
        permission: groupmanager.manuaddsub
      manudelsub:
        description: Remove a group to a player's subgroup list.
        usage: /<command> <player> <group>
        permission: groupmanager.manudelsub
      mangadd:
        description: Add group to the system.
        usage: /<command> <group>
        permission: groupmanager.mangadd
      mangdel:
        description: Removes group from the system(all it's users become default)
        usage: /<command> <group>
        permission: groupmanager.mangdel
      manuaddp:
        description: Add permission diretly to the player.
        usage: /<command> <player> <permission>
        permission: groupmanager.manuaddp
      manudelp:
        description: Removes permission diretly from the player.
        usage: /<command> <player> <permission>
        permission: groupmanager.manudelp
      manulistp:
        description: List all permissions from a player.
        usage: /<command> <player>
        permission: groupmanager.manulistp
      manucheckp:
        description: Verify if user has a permission, and where it comes from.
        usage: /<command> <player> <permission>
        permission: groupmanager.manucheckp
      mangaddp:
        description: Add permission to a group.
        usage: /<command> <group> <permission>
        permission: groupmanager.mangaddp
      mangdelp:
        description: Removes permission from a group.
        usage: /<command> <group> <permission>
        permission: groupmanager.mangdelp
      manglistp:
        description: Lists all permissions from a group.
        usage: /<command> <group>
        permission: groupmanager.manglistp
      mangcheckp:
        description: Check if group has a permission, and where it comes from.
        usage: /<command> <group> <permission>
        permission: groupmanager.mangcheckp
      mangaddi:
        description: Add a group to another group inheritance list.
        usage: /<command> <group1> <group2>
        permission: groupmanager.mangaddi
      mangdeli:
        description: Remove a group from another group inheritance list.
        usage: /<command> <group1> <group2>
        permission: groupmanager.mangdeli
      manuaddv:
        description: Add, or replaces, a variable to a user (like prefix or suffix).
        usage: /<command> <user> <variable> <value>
        permission: groupmanager.manuaddv
      manudelv:
        description: Remove a variable from a user.
        usage: /<command> <user> <variable>
        permission: groupmanager.manudelv
      manulistv:
        description: List variables a user has (like prefix or suffix).
        usage: /<command> <user>
        permission: groupmanager.manulistv
      manucheckv:
        description: Verify a value of a variable of user, and where it comes from.
        usage: /<command> <user> <variable>
        permission: groupmanager.manucheckv
      mangaddv:
        description: Add, or replaces, a variable to a group (like prefix or suffix).
        usage: /<command> <group> <variable> <value>
        permission: groupmanager.mangaddv
      mangdelv:
        description: Remove a variable from a group.
        usage: /<command> <group> <variable>
        permission: groupmanager.mangdelv
      manglistv:
        description: List variables a group has (like prefix or suffix).
        usage: /<command> <group>
        permission: groupmanager.manglistv
      mangcheckv:
        description: Verify a value of a variable of group, and where it comes from.
        usage: /<command> <group> <variable>
        permission: groupmanager.mangckeckv
      manwhois:
        description: Tell the group that user belongs.
        usage: /<command> <player>
        permission: groupmanager.manwhois
      tempadd:
        description: Creates a temporary permission copy for that user.
        usage: /<command> <player>
        permission: groupmanager.tempadd
      tempdel:
        description: Remove the temporary permission copy for player.
        usage: /<command> <player>
        permission: groupmanager.tempdel
      templist:
        description: List players in overload-permissions mode made by /tempadd.
        usage: /<command>
        permission: groupmanager.templist
      tempdelall:
        description: Remove all overrides made by command /tempadd.
        usage: /<command>
        permission: groupmanager.tempdelall
      mansave:
        description: Save all permissions on file.
        usage: /<command>
        permission: groupmanager.mansave
      manload:
        description: Reload current world and config.yml. Or load given world.
        usage: /<command> [world]
        permission: groupmanager.manload
      listgroups:
        description: List the groups available.
        usage: /<command>
        permission: groupmanager.listgroups
      manpromote:
        description: Promote a player in the same heritage line to a higher rank.
        usage: /<command> <player> <group>
        permission: groupmanager.manpromote
      mandemote:
        description: Demote a player in the same heritage line to a lower rank.
        usage: /<command> <player> <group>
        permission: groupmanager.mandemote
      mantogglevalidate:
        description: Toggle on/off the validating if player is online.
        usage: /<command>
        permission: groupmanager.mantogglevalidate
      mantogglesave:
        description: Toggle on/ff the autosave.
        usage: /<command>
        permission: groupmanager.mantogglesave
      manworld:
        description: Prints the selected world name
        usage: /<command>
        permission: groupmanager.manworld
      manselect:
        description: Select a world to work with next commands.
        usage: /<command> <world>
        permission: groupmanager.manselect
      manclear:
        description: Clear world selection. Next commands will work on your world.
        usage: /<command>
        permission: groupmanager.manclear
    All commands that changes permissions only allow you to change users below in a inheritance level(eg. Admins can't mod other Admins, but can modify Moderators).
    Except for Console, he can modify anyone.

    So, what happens with all of these plugins that already use Permissions?
    They will still work. I made a fake Permissions plugin, that will replace your old Permissions plugin. And the new fake one will attach directly on GroupManager system. So all plugins will think they are working with Permissions, but they will work with GroupManager.
    The most incredible thing is that all those plugins will receive the benefit of instant changes.

    I'm a server Administrator, what should I do to use it?
    If you already have Permissions, do this:
    1. Remove Permissions.jar from you plugins folder. (leave the Permissions folder there, if it is named diferently than this, the automatic import will not work)
    2. Paste GroupManager.jar with FakePermissions.jar on your plugins folder.
    3. Run.
    4. With all file structure done, you create your worlds folder and copy your files there.

    All your old plugins will still work like a charm.

    I'm a plugin developer, how should I use this plugin?
    You can read the java-doc, linked below. It's not complete yet, but it has the essential.
    Here is some code examples...

    Loading in your plugin:
    Code:
    import org.anjocaido.groupmanager.GroupManager;
    import org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder;
    import org.anjocaido.groupmanager.dataholder.WorldDataHolder;
    public void onEnable() {
            Plugin p = this.getServer().getPluginManager().getPlugin("GroupManager");
            if (p != null) {
                if (!this.getServer().getPluginManager().isPluginEnabled(p)) {
                    this.getServer().getPluginManager().enablePlugin(p);
                }
                GroupManager gm = (GroupManager) p;
                WorldsHolder wd = gm.getWorldsHolder();
            } else {
                this.getPluginLoader().disablePlugin(this);
            }
        }
    WorldsHolder contains everything you need. You can easily do anything with it.

    Here is a example of a plugin that in a special circumstance, needed to put the player in a special group, with no permissions at all.
    Code:
    public void markAsNotLoggedIn(Player player) {
                OverloadedWorldHolder perm = gm.getWorldsHolder().getWorldData(player);
                Group lockDown = perm.getGroup("NotLoggedIn");
                if(lockDown == null){
                    lockDown = perm.createGroup("NotLoggedIn");
                }
                perm.overloadUser(player.getName());
                perm.getUser(player.getName()).setGroup(lockDown);
        }
    From now on the user is in this special group. And every change on him is temporary. Until the code below is executed.
    Code:
    public void restorePermissions(Player player){
                OverloadedWorldHolder perm = gm.getWorldsHolder().getWorldData(player);
                perm.removeOverload(player.getName());
        }
    And, finally, how to check a user permission:
    Code:
    public boolean canChangeGroup(Player player){
                return gm.getWorldsHolder().getWorldPermissions(player).has(player,"groupmanager.mangroup");
        }
    F.A.Q.
    Q: It is compatible with permissions... but where it get it's data from?
    - A: It gets from users.yml and groups.yml in the world folder, located properly inside GroupManager worlds folder.
    Q: Can I use commands from other plugins to change permissions?
    - A: No. I made the decision to store data in GroupManager folder because I don't think it is right my plugin mess around with other ones files. Unfortunately, other plugins of group modification tries to access other files than mine.

    Changelog:
    Version 1.0 alpha-5:
    • Fixed a bug in method String[] groups(groupName)
    • Added some functionality to Tasks class
    • Fixed some errors in JavaDoc
    • Changed templates to make use of Roles plugin
    Show Spoiler

    Version 1.0 alpha-4:
    • Fixed subgroups listing when using /manulistp
    Version 1.0 alpha-3:
    • Basic user multigroup support using subgroups concept.
    • Added tracking for minor bugs.
    Version 1.0 alpha-2:
    • Now /manload reloads config.yml(which means mirror configuration receives updates too).
    Version 1.0 alpha:
    • Fixed some issues with /manpromote and /mandemote for multiples inheritances
    • Added permission node for commands in plugin.yml. So the newer EssentialsHelp feature I created will filter commands that people don't have(dev #688).
    Version 1.0 pre-alpha-3:
    • Now /manucheckp and /mangcheckp tells you if the permission was negated by a negation node.
    • Now using Breadth-first search for inheritance harvest. It guarantees that closer groups in inheritance are checked first.
    • Fixed some bugs, where a negation node directly in a user could be ignored.
    • Now it reads old data.yml and auto-install it to default world if none is found.
    • Created a system where plugins can get detailed answers from a permission check.
    • Deprecated some inefficient methods(all of them redirects to the new efficient method), but they still works.
    Version 1.0 pre-alpha-2:
    • World selection is optional, except for console.
    • Not selecting a world makes it run on same world of the command sender.
    • Fixed "temporary permissions" system.
    • Fixed most of commands bugs(I fixed all errors I could see)
    • Fake Permissions says it's 2.5 now, so plugins like HeroChat works now(yay).
    • Fixed some unnecessary file saves.
    • Added /manclear to clear selection
    • /manselect now lists physical worlds if no parameters are given.
    • /manload can load a world not loaded before, if given a parameter.
    Version 1.0 pre-alpha:
    • Refactored a lot of things. Please check the java-docs.
    • Added multiworld support.
    • Split files in users.yml and data.yml
    • Saves only files that needs changes
    • Fixed some bugs
    • World mirroring
    • Basic commands for world selection, to keep old commands working.
    Version 0.99d:
    • Fixed more small bugs.
    • Saves in human readable format
    • Deletes backups older than 24 hours
    Version 0.99c:
    • Fixed small bugs. Like /mangaddi
    • Changed some classes package
    Version 0.99b:
    • Fixed Group Variables, that I broke last version.(restore your backups, yay)
    Version 0.99a:
    • User specific variables. Prefixes, Suffixes and more.
    • Negative permission node(prevails normal nodes). Like '-groupmanager.*'
    • Exception permission node(prevails negative nodes). Like '+groupmanager.manpromote'
    Version 0.9e:
    • It writes a template it self if doesn't find any data.yml file on the folder.
    Version 0.9d:
    • FakePermissions adapted to new CB builds.
    Version 0.9c:
    • Multiple inheritance fixed.
    • Added a command to toggle auto-saving, so you can edit the file while it is disabled.
    • Tested with server 1.3
    Version 0.9b:
    • Now variables work with spaced strings.(you can add prefix with spaces)
    • Fixed some errors while loading files in later 400+ builds.
    • FakePermissions got small update.
    Version 0.9:
    • Added variables manipulation command(things in info node, such as prefix, suffix, build, and custom ones)
    • Improved FakePermissions support for the Nijikokun's original one.
    • FakePermissions force loading of GroupManager before itself.
    Version 0.8:
    • Added tons of commands. Resulting in a complete control, inside the game.
    • Renamed some commands in the same format Wulfspider sugested.
    • FakePermissions.jar updated to take care oc Misc field, which some Permissions plugins need.
    Version 0.7:
    • Added commands /manpromote and /mandemote
    • Fixed a bug where a file with an empty permissions node in a group could fail the plugin to load.
    • now /addpermissions can only add permissions that the player have access.
    Version 0.6c:
    • Removed the debugging messages that occurs while other plugins check permissions.
    • Removed the debugging messages on FakePermissions
    Version 0.6b:
    • Fixed inheritance system I broke in 0.6. Sorry.
    Version 0.6:
    • Fixed some bugs
    • User/Group class modelled in tiny different way(check JavaDocs)
    • Commands work on Console
    Version 0.5:
    • First fully working release.


    Future plans (they are closer than you think):
    • Make commands for cloning files, and world mirroring.
    • Implements Nijiko's interface for permission changing.
    • Make it work, optionally, with SQLite/MySQL(thinking of Persistence plugin, anyone with ideas?).

    Latest Build Download:
    http://www.mdn.fm/files/276497_as2zr/GroupManager-1.0-alpha-5.zip


    ===========================================
    Other Downloads:
    Java Doc:
    http://www.mdn.fm/files/276266_vqd0d/JavaDoc-GroupManager-1.0-alpha-3.zip

    ===========================================
    Plugins I love to use with GroupManager:
    Roles, Essentials, AntiGrief, iChat, MultiVerse, WorldEdit and WorldProtect.


    ===========================================
    Source:
    https://github.com/gmcouto/GroupManager
    Fake Permissions Source:
    https://github.com/gmcouto/FakePermission
     
    TNC, Kohle, pat8u and 17 others like this.
  2. Offline

    Dustin

    Does essentials.protect enable build rights? I'm using CB 514 and Essentials 285 and default players can still build while they are set to "build: false'

    I loaded the new Antibuild, and it works, so I'm wondering if that just not a feature of groupmanager or protect anymore. (or ever?)
     
  3. Offline

    Fireside

    @ Shaun Bennett. Sounds like you may be off track there. To clarify, Each world should have its own folder in root dir. Then in plugins/multiverse/ you will have a worlds.yml file containing the relevant info for each. (thats how MV1.4 works.)

    @ Anyone who is finding their file overwritten. Be sure to take control of the autosave feature and manually load from file if your editing configs via FTP.

    Question for AnjoCaido. {Thanks for your efforts} Can you please clarify the situation with the fake permissions plugin. My understanding is that it emulates permissions 2.0 so that plugins written for that system can use GroupManager. What are our options for using plugins written for the newer permissions 2.1->5?

    Or is this truly the fork in the road for the two permissions systems?
     
  4. Offline

    dslip

    Author,

    Please support the auto-updating plugin CraftBukkitUpToDate. To do so please provide a permanent direct link to the author of CraftBukkitUpToDate.

    The below is information they provide
    Show Spoiler

    My Plugin didn't supported, how i get it to work with CButD?
    Give me a permanent link to your Plugin, i will add it. That's all no changes at your SourceCode or something else, all I need is a permanent link to the newest version of your Plugin. A good place for this is http://www.dropbox.com/ or for OpenSource https://github.com/.


    I really enjoy using your plugin and would like to see it work well with the above listed 'updater' plugin.
     
  5. Offline

    OrtwinS

    Hi,
    I'm glad to see GM is getting better and better, last week I build a class/promotion system by hand using groups, I will most certainly switch to subgroups and perhaps roles now :D

    suggestion: clean up the info post, place the download link on top, and hide more behind spoilers, it such a huge bulky post now...
     
  6. I apologise if this is already on the books, if reposting suggestions becomes an issue, I suggest making a section on the essentials ticket system. At this point you probably want to clean up your post and move to several pages on essentials wiki anyway (even if this works without it, its a good enough place for documentation).

    Anyway, my main suggestion is that you attempt to address the fudge which is the current command system. By my last count there now are 39 commands from just this plugin. That's insane, especially since most commands are something that you don't want to deal with on a day to day basis. To get my /help back to a manageable level, I had to remove my access to the commands :p

    Without much effort, I reduced these quickly to about half and that was without doing much in the way of feature merging, although I left the temp commands alone because, I couldn't find any documentation suggesting how they actually worked.

    Show Spoiler

    Code:
    commands:
      manuadd:
        usage: /<command> <player> <group>   - changes main group
        usage: /<command> <player> +<group> - adds subgroup if user already has a group
        usage: /<command> <player> +<group> - removes group
      manudel:
        description: Remove any user specific configuration. Make him default group.
        usage: /<command> <player>
    
      manaddp:
        description: Add permission diretly to the player/group.
        usage: /<command> <player> <permission>
        usage: /<command> @<group>                         - Add the group? (is this even needed?)
        usage: /<command> @<group> <permission>
        usage: /<command> @<group1> @<group2> - Add a group to another group inheritance list.
      mandelp:
        description: Removes permission diretly from the player/group.
        usage: /<command> <player> <permission>
        usage: /<command> @<group>                        - Remove the group entirely.
        usage: /<command> @<group> <permission>
        usage: /<command> @<group1> @<group2> - Remove a group from another group inheritance list.
       mancheckp:
        description: List all permissions from a player/group or checks user/group has a permission, and where it comes from.
        usage: /<command> <player>
        usage: /<command> <player> <permission>
        usage: /<command> @<group>
        usage: /<command> @<group> <permission>
    
      manaddv:
        description: Add, or replaces, a variable to a user (like prefix or suffix).
        usage: /<command> <user> <variable> <value>
        usage: /<command> @<group> <variable> <value>
       mandelv:
        description: Remove a variable from a user.
        usage: /<command> <user> <variable>
        usage: /<command> @<group> <variable>
       mancheckv:
        description:  List variables a user has (like prefix or suffix) or verify a value of a variable of user, and where it comes from.
        usage: /<command> <user>
        usage: /<command> @<group>
        usage: /<command> <user> <variable>
        usage: /<command> @<group> <variable>
    
      manwhois:
        description: Tell the group that user belongs.
        usage: /<command> <player>
      listgroups:
        description: List the groups available.
        usage: /<command>
    
      tempadd:
        description: Creates a temporary permission copy for that user.
        usage: /<command> <player>
      tempdel:
        description: Remove the temporary permission copy for player.
        usage: /<command> <player>
      templist:
        description: List players in overload-permissions mode made by /tempadd.
        usage: /<command>
      tempdelall:
        description: Remove all overrides made by command /tempadd.
        usage: /<command>
    
      manpromote:
        description: Promote a player in the same heritage line to a higher rank.
        usage: /<command> <player> <group>
      mandemote:
        description: Demote a player in the same heritage line to a lower rank.
        usage: /<command> <player> <group>
    
      mansave:
        description: Save all permissions on file.
        usage: /<command>
      manload:
        description: Reload current world and config.yml. Or load given world.
        usage: /<command> [world]
      mantoggle:
        description: Toggle on/off the autosave/validate.
        usage: /<command> save
        usage: /<command> validate
      manworld:
        usage: /<command>                         - Prints the selected world name
        usage: /<command> set                   - Sets to current world
        usage: /<command> set <world>    - Sets to a specific world
    


    Otherwise great plugin!
     
  7. Offline

    AnjoCaido

    Yes, they are required.
     
  8. Offline

    kazimir

    Is there a possibility to edit the permission file offline, upload it and reload it?
    Everytime i upload my new one, it gets overwritten by the in memory permissions when i reload.
    Any suggestions?
     
  9. Offline

    AnjoCaido

    The name of the folder must be exactly the name of the world(case sensitive)
    [MERGETIME="1299758100"][/MERGETIME]
    Disable autosave before upload. (/mantogglesave)
    To reload, use the command /manload
    Even if it says it reloaded only the current world, it reloads all of them.
    Then your enable autosave again.
     
  10. Offline

    cheyne

    This is really driving me batty...
    my groups.yml keeps changing all the time going back to standard. Is there no other way to stop this from happening?

    Does anyone know what would be causing this? I've taken plugins out trying to see if its plugin related that may be conflicting and it seems none of mine are.

    Ive also tried the above with /mantogglesave and then /manload it just keeps reverting back.
     
  11. Offline

    footwo

    FYI, my issues seems to be a fault of how the config files are being stored. I use Multiplay as a hoster and it seems that the users/groups.yml are not being placed inside a 'world' folder, but in the root. I'm hoping they fix it soon, but seems to me to NOT be a problem with the plugin itself.
     
  12. Offline

    Dysalot

    I switched over to GroupManager once it was relased after beta 1.3. But I have had trouble getting any of it to work. It took my old permissions file, and updated it for GroupManager, and I deleted permissions.jar, added fakepermissions.jar, and still no one can use their commands (except admins), and oddly users that had /home can still use that.
     
  13. can someone please help i get this error message:

    Code:
    [INFO] §eLoaded Essentials build 2.0.285 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-03-10 17:40:37 [SEVERE] The following file couldn't pass on Parser.
    plugins\GroupManager\worlds\world\groups.yml (Is it up to date?)
    java.lang.IllegalArgumentException: The following file couldn't pass on Parser.
    plugins\GroupManager\worlds\world\groups.yml
        at org.anjocaido.groupmanager.dataholder.WorldDataHolder.load(WorldDataHolder.java:472)
        at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.loadWorld(WorldsHolder.java:358)
        at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.initialWorldLoading(WorldsHolder.java:68)
        at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.initialLoad(WorldsHolder.java:63)
        at org.anjocaido.groupmanager.dataholder.worlds.WorldsHolder.<init>(WorldsHolder.java:56)
        at org.anjocaido.groupmanager.GroupManager.onEnable(GroupManager.java:73)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
        at com.nijikokun.bukkit.Permissions.Permissions.onEnable(Permissions.java:61)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:57)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: while scanning a simple key
     in "<reader>", line 7, column 5:
            info
            ^
    could not found expected ':'
     in "<reader>", line 8, column 13:
              prefix: '&0fag'
                    ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:400)
        at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:231)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:182)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.anjocaido.groupmanager.dataholder.WorldDataHolder.load(WorldDataHolder.java:467)
        ... 19 more

    my group:

    groups:
    Griefer:
    default: false
    permissions:
    - essentials.rules
    inheritance: []
    info
    prefix: '&0fag'
    build: false
    suffix: '&0'
    Regular:
    default: true
    permissions:
    - myhome.home.*
    - essentials.me
    - essentials.tpa
    - essentials.tpaccept
    - essentials.tpdeny,
    - essentials.list
    - essentials.home
    - essentials.sethome
    - essentials.mail
    - essentials.mail.send
    - essentials.helpop
    - essentials.spawn
    - essentials.kit
    - essentials.kit.tools
    - essentials.help
    - essentials.motd
    - essentials.rules
    - essentials.msg
    - lwc.protect
    inheritance:
    info:
    prefix: ''
    build: true
    suffix: '&f'
    Builder:
    default: false
    permissions:
    - essentials.me
    - essentials.tpahere
    - essentials.tpa
    - essentials.tpaccept
    - essentials.tpdeny
    - essentials.tptoggle
    - essentials.warp
    - essentials.list
    - essentials.home
    - essentials.sethome
    - essentials.mail
    - essentials.mail.send
    - essentials.helpop
    - essentials.spawn
    - essentials.kit
    - essentials.kit.tools
    - essentials.help
    - essentials.motd
    - essentials.rules
    - essentials.msg
    - general.time
    - lwc.protect
    - /worldedit
    - essentials.jump,
    - essentials.item,
    - essentials.give,
    - essentials.time
    inheritance:
    - Regular
    info:
    prefix: '&6builder'
    build: true
    suffix: '&6'
    Mod:
    default: false
    permissions:
    - isee.admin
    - myhome.*
    - essentials.me
    - essentials.tpahere
    - essentials.tpa
    - essentials.tpaccept
    - essentials.tpdeny
    - essentials.tptoggle
    - essentials.warp
    - essentials.list
    - essentials.home
    - essentials.sethome
    - essentials.mail
    - essentials.mail.send
    - essentials.helpop
    - essentials.spawn
    - essentials.kit
    - essentials.kit.tools
    - essentials.help
    - essentials.motd
    - essentials.rules
    - essentials.msg
    - general.time
    - lwc.protect
    - /worldedit
    - /worldguard
    - general.kick
    - general.ban
    - essentials.jump
    - essentials.item
    - essentials.give
    - essentials.time
    - essentials.clearinventory
    - +groupmanager.mandemote
    - +groupmanager.manpromote
    inheritance:
    - Regular
    - Builder
    info:
    prefix: '&9Mod'
    build: true
    suffix: '&9'
    Admin:
    default: false
    permissions:
    - +groupmanager.mandemote
    - +groupmanager.manpromote
    - '*'
    inheritance:
    - Mod
    - Builder
    - Regular
    info:
    prefix: '&1beast&f'
    build: true
    suffix: '&1'
    Owner:
    default: false
    permissions:
    - +groupmanager.mandemote
    - groupmanager.*
    - '*'
    inheritance:
    - Mod
    - Builder
    - Regular
    info:
    prefix: '&6Amazing&c'
    build: true
    suffix: '&c'
     
  14. Offline

    ben657

    hello, for some reason i cant get anything to work... none of the commands listed on the first page are working, and neither are the prefixes...any ideas why?

    im using essentials group manager v2.0
    thats another thing, is that the same thing? i think it is.

    heres my groups.yml
    Code:
    groups:
         Owner:
            default: false
            info:
                build: false
                prefix: '&b'
                suffix:
            inheritance:
              - Players
            permissions:
              - '*'
    
        Admins:
            default: false
            info:
                build: false
                prefix: '&c'
                suffix:
            inheritance:
              - Players
            permissions:
              - '*'
    
        Players:
            default: true
            info:
                build: false
                prefix:
                suffix:
            inheritance:
            permissions:
    and my users file

    Code:
    users:
        ben657:
            group: Owner
            permissions:
            - '*'
    
        runeandre4:
            group: Admins
            permissions:
            - '*'
    
     
  15. Offline

    MationMac

    Using only GroupManager did not help, here are the configuration files:
    Users.yml
    Code:
    users:
        MationMac:
            group: Admin
            permissions:
        DC_Smoking:
            group: Member
            permissions:
        NickTack:
            group: Member
            permissions:
    Groups.yml
    Code:
    groups:
        Default:
            default: true
            info:
                prefix:
                suffix:
                build: true
            inheritance:
            permissions:
            - 'general.spawn'
            - 'iConomy.list'
            - 'iConomy.payment'
            - 'iConomy.rank'
            - 'essentials.signs.heal.use'
            - 'essentials.afk'
            - 'essentials.rules'
            - 'essentials.motd'
            - 'essentials.list'
            - 'essentials.mail'
            - 'essentials.helpop'
            - 'essentials.whois'
            - 'essentials.ping'
            - 'essentials.kit.'
            - 'essentials.help'
            - 'essentials.worth'
            - 'essentials.sell'
            - 'essentials.pay'
            - 'essentials.sethome'
            - 'essentials.home'
            - 'essentials.signs.sell.use'
            - 'essentials.signs.buy.use'
        Member:
            default: false
            info:
                prefix: '&b'
                suffix: '&b'
                build: true
            inheritance:
                - Default
            permissions:
            - 'general.spawn.set'
            - 'general.time'
            - 'general.help'
            - 'general.afk'
            - 'kit.tools'
            - 'kit.paintings'
            - 'kit.kit'
            - 'iConomy.list'
            - 'iConomy.payment'
            - 'iConomy.access'
            - 'iConomy.rank'
            - 'essentials.signs.heal.use'
            - 'essentials.back'
            - 'essentials.msg'
            - 'essentials.afk'
            - 'essentials.rules'
            - 'essentials.motd'
            - 'essentials.me'
            - 'essentials.list'
            - 'essentials.mail.send'
            - 'essentials.helpop'
            - 'essentials.whois'
            - 'essentials.ping'
            - 'essentials.kit.*'
            - 'essentials.kit.'
            - 'essentials.help'
            - 'essentials.sell'
            - 'essentials.pay'
            - 'essentials.signs.trade.use'
            - 'essentials.signs.trade.create'
            - 'essentials.sethome'
            - 'essentials.home'
            - 'essentials.warp'
            - 'essentials.signs.sell.use'
            - 'essentials.signs.buy.use'
        Moderator:
            default: false
            info:
                prefix: '&a'
                suffix: '&a'
                build: true
            inheritance:
                - Default, Member
            permissions:
            - 'general.spawn.set'
            - 'general.afk'
            - 'general.time'
            - 'general.help'
            - 'kit.kit'
            - 'kit.*'
            - spawnmob.spawnmob.friendly'
            - spawnmob.spawnmob.neutral'
            - 'iConomy.list'
            - 'iConomy.payment'
            - 'iConomy.access'
            - 'iConomy.rank'
            - 'essentials.signs.heal.use'
            - 'essentials.back'
            - 'essentials.msg'
            - 'essentials.afk'
            - 'essentials.rules'
            - 'essentials.motd'
            - 'essentials.me'
            - 'essentials.list'
            - 'essentials.mail.send'
            - 'essentials.helpop'
            - 'essentials.whois'
            - 'essentials.nick'
            - 'essentials.ping'
            - 'essentials.kit.*'
            - 'essentials.kit.'
            - 'essentials.help'
            - 'essentials.worth'
            - 'essentials.sell'
            - 'essentials.pay'
            - 'essentials.signs.trade.create'
            - 'essentials.signs.trade.use'
            - 'essentials.sethome'
            - 'essentials.home'
            - 'essentials.signs.sell.use'
            - 'essentials.signs.buy.use'
        Admin:
            default: false
            info:
                prefix: '&4'
                suffix: '&4'
                build: true
            inheritance:
            permissions:
                - '*'
    And here is proof it does not work;

    [​IMG][​IMG]
    [MERGETIME="1299780945"][/MERGETIME]
    @ben657 No, EssentialsGroupManager and GroupManager is not entirely same, go post your problem on Essentials 2.0 page.
     
  16. Offline

    PPowerHouseK

    I am having trouble getting the colors and prefixes to work as well. I can edit the individual player colors, but changing the group prefix to a color such as &2 ends up doing nothing. Is this normal? Or can we have preset group colors?
    You stated that some kind of chat pluggin is required, will HeroChat work for this?
    Additionally how do you promote someone in game?
     
  17. Offline

    minT

    [​IMG][​IMG]So... ive been trying to get group manager to work with my Craftbukkit server, but this keeps happening, ive gotten help and they dont know how to fix it either
    [​IMG]

    Help please :) thanks

    edit: here are my codes for groups and users respectively
    Code:
    groups:
      Guest:
        default: true
        permissions:
        - essentials.spawn
        - essentials.motd
        inheritance: []
        info:
          prefix: '[Guest]'
          build: false
          suffix: ''
      Member:
        default: false
        permissions:
        - essentials.help
        - essentials.home
        - essentials.motd
        - essentials.sethome
        - essentials.spawn
        - iConomy.payment
        - iConomy.rank
        - iConomy.list
        inheritance: [Guest]
        info:
          prefix: ''
          build: true
          suffix: ''
      mod:
        default: false
        permissions:
        - 'essentials.kick'
        - 'essentials.ban'
        inheritance: [memeber]
        info:
          prefix: '[Mod]'
          build: true
          suffix: ''
      Admin:
        default: false
        permissions:
        - '*'
        inheritance:
        - mod
        info:
          prefix: '[Admin]'
          build: true
          suffix: ''
    
    Code:
    users:
      minT:
        group: Admin
        permissions: [*]
        info:
          prefix: 'The Godfather'
          suffix: ''
      
     
  18. Offline

    MationMac

    It says subgroup Miner not found...
     
  19. Offline

    minT

    yea thats cause i dont have one, or want one. So i dont understand why it needs one in the first place.
     
  20. Offline

    MationMac

    Nothing seems to work in mine, so i might just redo everything from scratch. If that doesn't work, im gonna go back to Permissions.
     
  21. Offline

    minT

    likewise
     
  22. Offline

    PPowerHouseK

    Yes i noticed as well, removing any of the default groups renders this broken. Why do we have to have these preset groups? Or am I not doing something correctly?
     
  23. Offline

    MationMac

    @PPowerHouseK I had Default, Member, Moderator and Admin (instead of Admins), and it worked fine, but suddenly nothing worked.
     
  24. Offline

    PPowerHouseK

    See that's pretty much the same setup I am looking for, if you get it working, could I please have a copy of your user and group files? I would greatly appreciate that.
     
  25. Offline

    nichiatu

    Just put in the groups Miner and BlueFaction. Just have them there, don't use them. Is it so hard?
     
  26. Offline

    Phiwa

    Hello,
    when I restart my server the configs get resetted. I tried to change and restart the server 10 times and finally the users.yml stayed. But when I then tried to do the same for the groups.yml but it always gets resetted to the default config.
    Do you have any idea why I cannot do any permanent changes to this config?
     
    Moronmaster likes this.
  27. Offline

    PPowerHouseK

    Lol if it wasn't would so many people be asking....
     
  28. Offline

    Dephurites

    *cough* HELP? *cough*
     
  29. Offline

    MationMac

    Download alpha-5 first :p
     
  30. Offline

    eagledude4

    Got it working with Ichat, awsome plugin, altho It would of been better if I didnt need another plugin just for prefixes and suffixes.
     
  31. Offline

    vander_fr



    Is it possible to block non-plugin permission commands like /op, /ban and others natives commands of minecraft's server ?

    For now, even if summoncommand is set to true, anyone can create use them with the nickname of an admin.
    On my private server a player just took my name and he just put his withelisted friend op, without login to my registered account :/

    Cb #493 ( recommanded build) , same problem with the #522 ( lasted recommended build ).

    Gm 1.0 alpha 4
    fakepermission
    AnjoSecurity 1.6c
    No essential plugin.
     
Thread Status:
Not open for further replies.

Share This Page