Best way to manage PermissionsEx

Discussion in 'Bukkit Help' started by willowen100, Jul 2, 2014.

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

    willowen100

    Hi people,

    I have finally made the move from a backend file to an MySQL database on PermissionsEx. However, being new to this MySQL server thing, what would be the best way of adding new permissions to user groups and adding new members to groups such as staff without using the console?

    I'm extremely used to doing all of permissions by hand when the backend was is the form of a file, as I could quite simply open up the .yml file with Notepad ++ and off I go. Now after following a command in the documentation '/pex import file' this has now imported the backend file to the DB. Is there a way to convert the DB (database) back to a backend file (permissions.yml file) temporarily so that I can work on it at ease, and then when I've made my changes re-import it back to the DB?

    Surely typing permissions in-game via commands or via the DB itself would just be time consuming if you wanted the permissions quite specific? Does anybody else find working in the permissions.yml file easier?

    Many thanks

    Will

    Bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  2. Offline

    willowen100

    Anyone?
     
  3. Offline

    LHammonds

    Using the in-game commands.

    Yes. Its quite easy. I have a MySQL section in a permissions tutorial I'm working on which covers going back and forth.

    Whenever I do initial setups and install plugins, it always starts off in permissions.yml. But once my server is stable, I typically don't touch the file again so it wouldn't matter if it were in yml, sqlite or mysql. I'm quite comfortable making adjustments using in-game commands.

    Code:
    /pex user <name> add/remove
    /pex user <name> group add/remove
    /pex group <groupname> add/remove
    
     
  4. Offline

    willowen100

    Thank you very much.
    The text tutorial was perfect for explaining the SQL to flatfile migration. I also found the tutorial about the ranks useful too, something part of PeX I've never been bothered to use before. I guess if you don't set a rank on a group players will be unable to be promoted to it?
     
  5. Offline

    LHammonds

    You are quite welcome. I make tutorials because my memory sux and I end up re-learning from myself later down the road but the side benefit is others can read it too. hehehe.

    Right, promotions are related to ladder systems. If you don't setup a ladder, promote/demote do nothing for you.

    Of course, you can manually set groups but the beauty of ladders is that you can define prerequisites into the ladder system and move people up and down without even remember what the next step up or down is in comparison to where they are now. ;)
     
Thread Status:
Not open for further replies.

Share This Page