createUserRecords equivalent #161


  • Enhancment
  • Accepted
Open
Assigned to _ForgeUser1494830
  • Forge_User_12999323 created this issue Aug 14, 2014

    Hey,

    I have a default group for users when they join, as well as voter and premium groups amongst others which are weighted to allow users to have multiple groups. However, when a user is added to the voter group for example, the default group disappers. Therefore, I have to add users who vote to the voter group AND the default group in order for them to keep the default group's permissions.

    PermissionsEx had a configuration option called "createUserRecords: true/false" which set users to the default group when they joined the server and saved it to prevent this sort of behaviour from occuring.

    Is it possible to have something like this for zPermissions?

    Thanks!

    Nentify

  • Forge_User_12999323 added the tags New Enhancment Aug 14, 2014
  • _ForgeUser1494830 posted a comment Aug 14, 2014

    Seems fairly straightforward. I avoided doing this in the past because I didn't want to write to the database on login... but that's now unavoidable. Since the UUID update, zPerms updates display names and UUID mappings whenever someone logs in.

    Only concern with this is that you can actually start up a brand new server without any groups created. What then when someone (like you, the admin) logs in? I don't think creating the default group automatically is the way to go (may cause surprises), so I'll have to find a way to deal with that.

  • _ForgeUser1494830 removed a tag New Aug 14, 2014
  • _ForgeUser1494830 added a tag Accepted Aug 14, 2014
  • _ForgeUser1494830 posted a comment Aug 14, 2014

    Dev build #559+ has a new option named explicit-default-group-membership. The config.yml will be updated to include this new option and it will default to false. You will want to set it true.

    If you aren't running a dev build, I recommend going over the bottom part of the upcoming release notes. There are many many changes since 1.3beta1.

    Usual dev build warnings apply (Dev builds have not been approved by the BukkitDev staff. Use them at your own risk. Etc. etc.)

  • Forge_User_12999323 posted a comment Sep 21, 2014

    Whoops - Forgot about this ticket. Thanks a lot, saves me having to use a workaround!


To post a comment, please login or register a new account.