Inactive [ADMN/WEB/SEC] Warrant 4 - Fast Forum Group Bridge [1.1-R6/1.2.2-R0.1]

Discussion in 'Inactive/Unsupported Plugins' started by Ant59, May 21, 2011.

  1. Offline

    Ant59

    • adfly link removed
    [​IMG]

    Warrant effectively allows you to control your users' permission ranks in-game through your forum/community system! I have designed this to work with Permissions 3 and SMF, however it is customisable to work with nearly any forum system using MySQL. All column names are customisable and information can be changed in the config.yml file.
    Warrant is perfect for subscription servers, where SMF subscriptions are used for example. It can grant VIP grouping as soon as the player logs in after taking out the subscription on the forum, or simply being moved rank on the forum.

    So far, I've had feedback of successful syncing with SMF, phpBB, XenForo, vBulletin, ccBoard and a few others I can't remember the names of :)

    Supports the following permissions plugins: PermissionsEx, bPermissions.
    Has Warrant been of any use to you?
    For now, this is my only source of income at university.
    Every donation is VERY much appreciated :D
    [​IMG]
    Version 4.0.3
    Version 3.2
    Just grab the JAR there, and drop it in your plugins folder! Simples ;)
    Let me know if there are any other features you want and if there are any bugs to squash!
    Currently, you will still need to create your own configuration file for Warrant to work from. Inside your plugins folder, create a folder called "Warrant", and inside there create a file called "config.yml". Here are example config.yml files for you to work from and customise as you wish. If anyone creates example files for any other forum system, I'd love to post them up here too!

    SMF (open)
    Code:
    forum:
        # Want to use information from a custom profile field instead of the user's forum username?
        multitable: false
        # Want to use a comma seperated list of additional groups to assign your member?
        use-additional-groups: true
        # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        use-group-table: false
        # If you'd like, Warrant can look at if the member's "banned-field" is true or false and keep 'em out if it's true
        use-boolean-ban: false
        # Bung in the info on where to look for the member data
        usertable:
            # Name of the member data table
            name: smf_members
            # Field to find the group id to match those set in the "groups" section of this file
            group-field: id_group
            # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            username-field: member_name
            # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            additional-groups-field: additional_groups
            # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            banned-field:
            # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            key-field: id_member
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            # Name of the custom profile fields table
            name: smf_custom_fields
            # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
            key-field: id_member
            # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
            minecraft-name-field:
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name: phpbb_user_group
            key-field: user_id
            group-field: group_id
     
    # Stick your database info here
    database:
        host: 'districtmine.net'
        port: '3306'
        db: 'database'
        user: 'username'
        pass: 'password'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - world
    # What you gonna tell peeps that aren't whitelisted? (PS, telling them to go and register on the forum would be a good idea. Telling them to #"@! off, would not)
    kick-message: 'Sorry, you are not permitted to login to the server at your current rank'
    # What you gonna tell peeps that are banned by your forum? (Telling these guys to #"@! off may actually be a good idea lol)
    banned-message: 'Sorry, you are not permitted to login to the server as you are banned'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-login: true
    # Keep out those who aren't in any group stated below (false), or shall we let them in and assign them to their default permissions group (true)?
    whitelist-default: true
    # Stick all the mappings here for any groups you wish tp be auto-ranked
    # Make sure to surround the number in single quotes (''), else it may just self-destruct and noone wants that
    # If "whitelisted" is false, then you may ommit the rank, as there will be no need to assign a rank to disallowed players
    # You must give a default group that can be assigned to those players that have been demoted from a higher rank to prevent them from keeping permissions they no longer have access to
    default-group: Member
    groups:
        # Here, normal registered members can go ahead and just join in as normal members
        '0':
            rank: Member
            whitelisted: true
        # Admins are instantly granted all there rights as found in the Permissions configuration
        '1':
            rank: Admins
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one :)
        '2':
            whitelisted: false
    

    phpBB3 (open)
    Code:
    forum:
        # Want to use information from a custom profile field instead of the user's forum username?
        multitable: false
        # Want to use a comma seperated list of additional groups to assign your member?
        use-additional-groups: false
        # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        use-group-table: true
        # If you'd like, Warrant can look at if the member's "banned-field" is true or false and keep 'em out if it's true
        use-boolean-ban: false
        # Bung in the info on where to look for the member data
        usertable:
            # Name of the member data table
            name: phpbb_users
            # Field to find the group id to match those set in the "groups" section of this file. This can be left blank if you are using the group-table
            group-field:
            # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            username-field: username
            # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            additional-groups-field:
            # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            banned-field:
            # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            key-field: user_id
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            # Name of the custom profile fields table
            name: smf_custom_fields
            # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
            key-field: id_member
            # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
            minecraft-name-field:
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name: phpbb_user_group
            key-field: user_id
            group-field: group_id
    # Stick your database info here
    database:
        host: 'localhost'
        port: '3306'
        db: 'minecraft'
        user: 'root'
        pass: 'xxxx'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - world
    # What you gonna tell peeps that aren't whitelisted? (PS, telling them to go and register on the forum would be a good idea. Telling them to #"@! off, would not)
    kick-message: 'Sorry, you are not permitted to login to the server at your current rank'
    # What you gonna tell peeps that are banned by your forum? (Telling these guys to #"@! off may actually be a good idea lol)
    banned-message: 'Sorry, you are not permitted to login to the server as you are banned'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-login: true
    # Keep out those who aren't in any group stated below (false), or shall we let them in and assign them to the default permissions group (true)?
    whitelist-default: true
    # Stick all the mappings here for any groups you wish tp be auto-ranked
    # Make sure to surround the number in single quotes (''), else it may just self-destruct and noone wants that
    # If "whitelisted" is false, then you may ommit the rank, as there will be no need to assign a rank to disallowed players
    # You must give a default group that can be assigned to those players that have been demoted from a higher rank to prevent them from keeping permissions they no longer have access to
    default-group: Member
    groups:
        '1':
            rank: Guest
            whitelisted: true
        '5':
            rank: Owner
            whitelisted: true
        '11':
            rank: Moderator
            whitelisted: true
        '13':
            rank: Constructer
            whitelisted: true
        '14':
            rank: Builder
            whitelisted: true
        '17':
            rank: Admin
            whitelisted: true
    

    XenForo (open)
    Code:
    forum:
        # Want to use information from a custom profile field instead of the user's forum username?
        multitable: false
        # Want to use a comma seperated list of additional groups to assign your member?
        use-additional-groups: false
        # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        use-group-table: false
        # If you'd like, Warrant can look at if the member's "banned-field" is true or false and keep 'em out if it's true
        use-boolean-ban: false
        # Bung in the info on where to look for the member data
        usertable:
            # Name of the member data table
            name: xf_user
            # Field to find the group id to match those set in the "groups" section of this file
            group-field: user_group_id
            # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            username-field: username
            # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            additional-groups-field:
            # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            banned-field: is_banned
            # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            key-field:
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            # Name of the custom profile fields table
            name:
            # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
            key-field:
            # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
            minecraft-name-field:
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name:
            key-field:
            group-field:
     
    # Stick your database info here
    database:
        host: '*HOST*'
        port: '3306'
        db: '*DATABSE*'
        user: '*USERNAME*'
        pass: '*PASSWORD*'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - world
    # What you gonna tell peeps that aren't whitelisted? (PS, telling them to go and register on the forum would be a good idea. Telling them to #"@! off, would not)
    kick-message: 'Maintenance going on. Connect later.'
    # What you gonna tell peeps that are banned by your forum? (Telling these guys to #"@! off may actually be a good idea lol)
    banned-message: 'Sorry, you are not permitted to login to the server as you are banned'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-login: true
    # Keep out those who aren't in any group stated below (false), or shall we let them in and assign them to their default permissions group (true)?
    whitelist-default: true
    # Stick all the mappings here for any groups you wish tp be auto-ranked
    # Make sure to surround the number in single quotes (''), else it may just self-destruct and noone wants that
    # If "whitelisted" is false, then you may ommit the rank, as there will be no need to assign a rank to disallowed players
    # You must give a default group that can be assigned to those players that have been demoted from a higher rank to prevent them from keeping permissions they no longer have access to
    default-group: guest
    groups:
        # Here, normal registered members can go ahead and just join in as normal members
        '1':
            whitelisted: false
        '2':
            whitelisted: false
        '3':
            rank: admin
            whitelisted: true
        '4':
            rank: mod
            whitelisted: true
    

    Joomla and ccBoard (open)
    Warning! This one includes only the forum section! You will need to get the rest of the config from one above.


    What is new in version 2?
    This version has been completely written from scratch. It is extremely improved in performance, processing everything in a separate thread to avoid lag when someone logs in. Although this method waits for a non-whitelisted player to enter the game before kicking them, it does stop any lag from Warrant when anyone joins the game. You can now whitelist individual groups, and you can control which worlds Warrant alters Permissions in. You can also set Warrant to apply additional groups to players by looking into a comma separated list in of additional groups in one of your database fields. Please let me know if you want anything else from Warrant!

    What is new in version 3?
    Permissions support! Warrant now supports a large array of permissions plugins. Unfortunately because Warrant manipulates grouping of players, it means that it has to individually support the different plugins and the way that they change the player's groups, and since there is no standard here, I have to individually code in extra parts for any new permissions plugin that users want me to support, so please let me know if any more are wanted!

    Changelog

    4.0
    + Added support for the new Bukkit events system
    - Dropped support for Permissions 2.x
    - Dropped support for Permissions 3.x
    ~ Made some minor adjustments for speed and threading

    3.2
    ~ Fixed all the class not found errors

    3.1
    ~ Worked all the bugs out of using multiple permissions managers
    ~ Fixed most of the class not found errors

    3.0.4
    ~ After the trouble of getting my test server to work again, I can't even remember what I changed, but I remember adding something and fixing a few things lol)

    3.0.3
    ~ Checks Permissions version using string instead of double

    3.0.2
    ~ Compatible with CraftBukkit 1240
    ~ Fixed group naming (removed formatting for console)

    3.0.1
    ~ Compiled against JDK6
    ~ Fixed error with bPermissions

    3.0
    + Now works with bPermissions, PermissionsEx, Permissions 3 and partially (hopefully lol) Permissions 2
    + Requires a default-group node in the config to specify a group which a player should be assigned when they no longer get set by the forum to solve a security issue

    2.5
    ~ Fixed major security issue when players are demoted to the default group
    ~ Fixed spelling mistake and variable reference error when notifying additional groups

    2.4
    ~ Changed the getUserObject and getGroupObject methods to their safe counterparts to prevent an error for users who aren't registered in Permissions yet

    2.3.1
    ~ Fixed event register in onEnable to the correct event

    2.3
    ~ Changed event to player join instead of player login to avoid major error

    2.2.2
    + Check to see if Permissions world exists for worlds in the config

    2.2.1
    + Check to see if user has parent groups before trying to remove them

    2.2
    + Added phpBB3 functionality and the ability to set a separate table for group keys

    2.1
    + Added banning ability from forum table flag
    + Added on kick/on ban messages
    ~ Corrected an inverted boolean setting for whitelisting guests

    2.0
    ~ Complete recode of the plugin from scratch with efficiency at the heart of it
    ~ All Warrant processing is now threaded to prevent server lag when someone logs in
    + Added TONS of new features, most things that people had asked for from the new version

    Old Post (v1.2 and backward) (open)

    Go ahead and grab v1.2 for your server now...

    Download JAR: http://dl.dropbox.com/u/29840218/Warrant.jar
    Download MySQL Connector: http://dl.dropbox.com/u/29840218/mysql.jar

    Installation
    1. Place Warrant.jar in your plugins directory
    2. Place mysql.jar (the mysql java connector) into the root of your bukkit server, in the same folder as craftbukkit.jar
    3. Requires EssentialsGroupManager.jar! Add this to your plugins folder too, from the Essentials plugin suite.
    4. It is suggested to add EssentialsGroupBridge.jar too, since this will give more compatability with plugins that only talk to Permissions instead of GroupManager. Do NOT use Permissions.jar with this plugin!
    Configuration








    All configuration settings can be found in the auto-generated properties file, found in plugins/Warrant/warrant.properties


    IMPORTANT!

    You MUST create a "groups.properties" file in the plugins/Warrant folder!


    The groups.properties file takes the format of



    Code:
    #forum group id=GroupManager rank
    1=Admins
    2=Member
    Properties and explanations

    These are the properties needed to be set in the warrant.properties file...

    mysql-host - The MySQL server IP or URL

    mysql-port - Port of MySQL server (3306 by default)

    mysql-db - Database to find member data

    users-table - The table used for member data

    minecraftname-table - The OPTIONAL table used for extra data, where the user's minecraft username lies - perfect for forums that set "Minecraft username" as an additional profile field :) If left blank, the plugin will default to single table mode

    mysql-user - Name of MySQL User

    mysql-pass - Password for MySQL user

    minecraftname-field - The field which stores the user's minecraft player name. This is either on the specified table in "minecraftname-table", or it is in the default "users-table" if the former is left blank.

    group-field - The field that stores the group ids of users in "users-table"

    memberid-field - When in two table mode (see "minecraftname-table"), the field used to store the user's id in the "users-table" - used to join the two tables together

    minecraftname-table-memberid-field - When in two table mode (see "minecraftname-table"), the field used to store the user's id in the "minecraftname-table" - used to join the two tables together


    I took my own time to make this plugin and distribute it and would really appreciate a small donation if you find it useful :) Thank you!

    [​IMG]


    Any suggestions welcome!!

    Changelog
    • v1.2
      • Done my best to optimize the plugin in every way I can think and better error handling too
      • Updated for build 818
      • Stuck some code in ready for when Permissions add hooks to change groups. Waiting on the Permissions team now to be able to support their plugin
    • v1.1
      • Moved warrant giving method into it's own thread, therefore allowing a player to login with no lag caused by warrant to the server, and it will grant the warrant to the player when it's all finished. Max timeout of 1 minute
      • Added support to have the minecraft username on a seperate MySQL table, linked to the members' table through members' ID#s.
    • v1.0 alpha
      • Initial Release
    Want to whitelist players with forum groups instead? Use Albus
     
  2. Offline

    Ant59

    Could you send me your config please?
     
  3. Offline

    Stortcraft

    forum:
    # Want to use information from a custom profile field instead of the user's forum username?
    multitable: false
    # Want to use a comma seperated list of additional groups to assign your member?
    use-additional-groups: false
    # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
    use-group-table: true
    # If you'd like, Warrant can look at if the member's "banned-field" is true or false and keep 'em out if it's true
    use-boolean-ban: false
    # Bung in the info on where to look for the member data
    usertable:
    # Name of the member data table
    name: phpbb_users
    # Field to find the group id to match those set in the "groups" section of this file. This can be left blank if you are using the group-table
    group-field:
    # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
    username-field: username
    # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
    additional-groups-field:
    # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
    banned-field:
    # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
    key-field: user_id
    # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
    profiletable:
    # Name of the custom profile fields table
    name: smf_custom_fields
    # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
    key-field: id_member
    # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
    minecraft-name-field:
    # This ONLY applies if you want to use a phpBB3 style group table
    grouptable:
    name: phpbb_user_group
    key-field: user_id
    group-field: group_id
    # Stick your database info here
    database:
    host: 'mcsql.daddycheese.com'
    port: '3306'
    db: 'stortcraft'
    user: 'stortcraft'
    pass: **************'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
    - world
    # What you gonna tell peeps that aren't whitelisted? (PS, telling them to go and register on the forum would be a good idea. Telling them to #"@! off, would not)
    kick-message: 'Sorry, you are not permitted to login to the server at your current rank'
    # What you gonna tell peeps that are banned by your forum? (Telling these guys to #"@! off may actually be a good idea lol)
    banned-message: 'Sorry, you are not permitted to login to the server as you are banned'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-login: true
    # Keep out those who aren't in any group stated below (false), or shall we let them in and assign them to the default permissions group (true)?
    whitelist-default: true
    # Stick all the mappings here for any groups you wish tp be auto-ranked
    # Make sure to surround the number in single quotes (''), else it may just self-destruct and noone wants that
    # If "whitelisted" is false, then you may ommit the rank, as there will be no need to assign a rank to disallowed players
    # You must give a default group that can be assigned to those players that have been demoted from a higher rank to prevent them from keeping permissions they no longer have access to
    default-group: default
    groups:
    '8':
    rank: Member
    whitelisted: false
    '5':
    rank: SeniorMember
    whitelisted: false
     
  4. Offline

    TehChikenHater

    Not the best idea to release a plugin for an unofficial CB build right? I'd wait it out, but still cool plugin. Nice job! +1 me?
     
  5. Offline

    Jamie Tees

    Works fine with Craftbukkit R5 or the Recommended build! I'm the beta tester for ant :p
     
  6. Offline

    Stortcraft

    RE: my post aboth
    Plz help me
     
  7. Offline

    Ant59

    Still working on it, but I can't find anything wrong. Really weird issue.
     
  8. Offline

    Engeltj

    vBulletin configuration:
    Code:
        # Bung in the info on where to look for the member data
        usertable:
            # Name of the member data table
            name: user
            # Field to find the group id to match those set in the "groups" section of this file
            group-field: usergroupid
            # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            username-field: username
            # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            additional-groups-field:
            # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            banned-field:
            # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            key-field:
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            # Name of the custom profile fields table
            name:
            # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
            key-field:
            # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
            minecraft-name-field:
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name:
            key-field:
            group-field:
    
    If you or anyone needs it

    -Tim
     
  9. Offline

    mamalotas1

    this looks very useful, I will try it out
     
  10. Offline

    kbrocks100

    no PermissionsBukkit support? Is it a planned feature? They updated it
     
  11. Offline

    Ant59

     
  12. Offline

    l104693

    WHAT!?
    THIS HAS BEEN UPDATED!

    Thank you! :D:D:D

    Edit: Download offline? :(
    Edit2: Sockshare is not available from the Netherlands? (got it through a proxy)
     
  13. Offline

    thernztrom

    Yeah, those download sites can be abit weird sometimes, good news is he's considering opening up his bukkitdev page again, so hopefully we'll see builds being uploaded there later.

    Nice update Ant59 I'll test this build out later today on 1.2.2-CB build. :)
     
  14. Offline

    Ant59

    http://dev.bukkit.org/server-mods/warrant/ :)

    Just want to say a big thank you to everyone who has donated to this project! It's very much appreciated and helps to keep this project alive and up to date :)

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

    thernztrom

    I just sent some :) Thanks for developing it!
     
    Ant59 likes this.
  16. Offline

    jodom1979

    Is there a way to integrate this into wordpress like Albus use to? Basically want to whitelist on wordpress then have it whitelist on minecraft. Sorry, I'm semi-new to this type of plugin.

    This is my attempt to get this working on wordpress.... I can't make it work. Basically I have a field in wordpress that changes a value from 1 or 0 depending on their whitelist status. All I want to do is enable or disable the user in minecraft.


    Code:
    forum:
        # Want to use information from a custom profile field instead of the user's forum username?
        multitable: false
        # Want to use a comma seperated list of additional groups to assign your member?
        use-additional-groups: true
        # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        use-group-table: false
        # If you'd like, Warrant can look at if the member's "banned-field" is true or false and keep 'em out if it's true
        use-boolean-ban: true
        # Bung in the info on where to look for the member data
        usertable:
            # Name of the member data table
            name: wp_users
            # Field to find the group id to match those set in the "groups" section of this file
            group-field: id_group
            # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            username-field: user_login
            # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            additional-groups-field: additional_groups
            # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            banned-field: whitelist
            # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            key-field: user_nicename
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            # Name of the custom profile fields table
            name: display_name
            # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
            key-field: ID
            # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
            minecraft-name-field: user_login
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name:
            key-field:
            group-field:
     
    # Stick your database info here
    database:
        host: 'asdasd'
        port: '3306'
        db: 'minecraft'
        user: 'Minecraft'
        pass: 'asdasdasd'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - world
    # What you gonna tell peeps that aren't whitelisted? (PS, telling them to go and register on the forum would be a good idea. Telling them to #"@! off, would not)
    kick-message: 'Sorry, you are not permitted to login to the server at your current rank'
    # What you gonna tell peeps that are banned by your forum? (Telling these guys to #"@! off may actually be a good idea lol)
    banned-message: 'Sorry, you are not permitted to login to the server as you are banned'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-login: true
    # Keep out those who aren't in any group stated below (false), or shall we let them in and assign them to their default permissions group (true)?
    whitelist-default: false
    # Stick all the mappings here for any groups you wish tp be auto-ranked
    # Make sure to surround the number in single quotes (''), else it may just self-destruct and noone wants that
    # If "whitelisted" is false, then you may ommit the rank, as there will be no need to assign a rank to disallowed players
    # You must give a default group that can be assigned to those players that have been demoted from a higher rank to prevent them from keeping permissions they no longer have access to
    default-group: Member
    groups:
        # Here, normal registered members can go ahead and just join in as normal members
        '0':
            rank: Member
            whitelisted: true
        # Admins are instantly granted all there rights as found in the Permissions configuration
        '1':
            rank: Admins
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one :)
        '2':
            whitelisted: false
    Thanks for the hard work!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  17. Offline

    Stortcraft

    Hi, have you found a fix to the error?
     
  18. Offline

    Nashe

    Hello,

    I speak French and I use Google Translate.
    How fair run Warrant with bPermissions ?
    I realized for the configuration of the Data Base but not to integrate on bPermissions.
    Help me please.
     
  19. Offline

    thernztrom

    I just updated my server from 1.1-R4 and Warrant 3.2 to 1.2.3-R0.1 and Warrant 4.0.3.
    I use the config file that I had before:
    http://pastie.org/3521325
    Just noticed that guests, those with no rank on our forums, get the whitelist message, even tho I have the whitelist feature turned of in the config file?
    As soon as the person gets a rank in the forum database it works, but if he's not registred Warrant kicks him at join with the whitelist message. Anyone with same issue?
     
  20. Offline

    kamakarzy

    i seem to have a problem everytime a user regesters on my fourm it says that its changing them to Member but it doesnt change there prefix associated with member any help would be great

    Code:
    forum:
        # Want to use information from a custom profile field instead of the user's forum username?
        multitable: false
        # Want to use a comma seperated list of additional groups to assign your member?
        use-additional-groups: true
        # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        use-group-table: false
        # If you'd like, Warrant can look at if the member's "banned-field" is true or false and keep 'em out if it's true
        use-boolean-ban: false
        # Bung in the info on where to look for the member data
        usertable:
            # Name of the member data table
            name: smf_members
            # Field to find the group id to match those set in the "groups" section of this file
            group-field: id_group
            # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            username-field: member_name
            # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            additional-groups-field: additional_groups
            # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            banned-field:
            # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            key-field: id_member
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            # Name of the custom profile fields table
            name: smf_custom_fields
            # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
            key-field: id_member
            # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
            minecraft-name-field:
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name: phpbb_user_group
            key-field: user_id
            group-field: group_id
     
    # Stick your database info here
    database:
        host: '******'
        port: '3306'
        db: '******'
        user: '******'
        pass: '******'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - world
    # What you gonna tell peeps that aren't whitelisted? (PS, telling them to go and register on the forum would be a good idea. Telling them to #"@! off, would not)
    kick-message: 'Sorry, you are not permitted to login to the server at your current rank'
    # What you gonna tell peeps that are banned by your forum? (Telling these guys to #"@! off may actually be a good idea lol)
    banned-message: 'Sorry, you are not permitted to login to the server as you are banned'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-login: true
    # Keep out those who aren't in any group stated below (false), or shall we let them in and assign them to their default permissions group (true)?
    whitelist-default: true
    # Stick all the mappings here for any groups you wish tp be auto-ranked
    # Make sure to surround the number in single quotes (''), else it may just self-destruct and noone wants that
    # If "whitelisted" is false, then you may ommit the rank, as there will be no need to assign a rank to disallowed players
    # You must give a default group that can be assigned to those players that have been demoted from a higher rank to prevent them from keeping permissions they no longer have access to
    default-group: Player
    groups:
        # Here, normal registered members can go ahead and just join in as normal members
        '0':
            rank: Member
            whitelisted: true
        # Admins are instantly granted all there rights as found in the Permissions configuration
        '1':
            rank: Owner
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one :)
        '2':
            rank: Moderator
            whitelisted: true
         
        '3':
            rank: Moderator
            whitelisted: true
         
        '4':
            rank: Member
            whitelisted: true
         
        '5':
            rank: Admin
            whitelisted: true
         
        '6':
            rank: V.I.P
            whitelisted: true
         
        '7':
            rank: V.I.P-Elite
            whitelisted: true
         
        '8':
            rank: Shout Mod
            whitelisted: true
         
        '10':
            rank: Creator
            whitelisted: true
         
        '11':
            rank: Staff-Leader
            whitelisted: true
     
  21. Offline

    iConfesss

    Is there a way to make it compatible with GroupManager somehow? Also, does this plugin support ipb?
    Thanks in advance :)
     
  22. Offline

    jodom1979

    Ok, made some progress making this work in wordpress. So far it just grabs a 1 or 0 from the wp_users table. It will connect to SQL and query the white-list table and set the permissions based off of the group at the bottom..... The problem I'm having is getting it to pull the use grouptable section. I have a specific section I want to use.

    Layout

    Table: wp_usermeta
    Use the column meta_key:
    select wp_user_level and pull the number from the meta_value column

    I really dont know how to make the config file point to that number. IF so then I can select the role in wordpress to allocate permissions and it would be a one stop shop for managing both wordpress users and minecraft users.

    I really appreciate the help and the great plugin! Let me know what you think, this may lead to a solid config for wordpress.

    _Jake


    PHP:
    forum:
        
    # Want to use information from a custom profile field instead of the user's forum username?
        
    multitablefalse
        
    # Want to use a comma separated list of additional groups to assign your member?
        
    use-additional-groupsfalse
        
    # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        
    use-group-tabletrue
        
    # If you'd like, Warrant can look at if the member's "banned-field" is true or false and keep 'em out if it's true
        
    use-boolean-banfalse
        
    # Bung in the info on where to look for the member data
        
    usertable:
            
    # Name of the member data table
            
    namewp_users
            
    # Field to find the group id to match those set in the "groups" section of this file. This can be left blank if you are using the group-table
            
    group-fieldwhitelist
            
    # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            
    username-fielduser_login
            
    # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            
    additional-groups-field:
            
    # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            
    banned-fieldwhitelist
            
    # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            
    key-fieldID
        
    # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        
    profiletable:
            
    # Name of the custom profile fields table
            
    name:
            
    # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
            
    key-field:
            
    # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
            
    minecraft-name-field:
        
    # This ONLY applies if you want to use a phpBB3 style group table
        
    grouptable:
            
    namewp_usermeta
            key
    -fielduser_id
            group
    -fieldwp_user_level
    # Stick your database info here
    database:
        
    host'xxxxxx'
        
    port'3306'
        
    db'minecraft'
        
    user'xxxx'
        
    pass'xxxxxx'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - 
    world
    # What you gonna tell peeps that aren't whitelisted? (PS, telling them to go and register on the forum would be a good idea. Telling them to #"@! off, would not)
    kick-message'Sorry, in order to login you need to register at www.19-kilo.com -- Thank You'
    # What you gonna tell peeps that are banned by your forum? (Telling these guys to #"@! off may actually be a good idea lol)
    banned-message'Sorry, you are not permitted to login to the server as you are banned'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-logintrue
    # Keep out those who aren't in any group stated below (false), or shall we let them in and assign them to the default permissions group (true)?
    whitelist-default: true
    # Stick all the mappings here for any groups you wish tp be auto-ranked
    # Make sure to surround the number in single quotes (''), else it may just self-destruct and noone wants that
    # If "whitelisted" is false, then you may ommit the rank, as there will be no need to assign a rank to disallowed players
    # You must give a default group that can be assigned to those players that have been demoted from a higher rank to prevent them from keeping permissions they no longer have access to
    default-groupRegulars
    groups
    :
        
    '1':
            
    rankRegulars
            whitelisted
    true
     
  23. Offline

    sethgandy

    So now that OKB3 is dead and abandoned...
    Any possibility you can graft the sync command / password system?

    That's the only reason I used that plugin...
    I had a custom setup me and Kalman had worked out on phpBB3 that randomly generated a key that was stored to a "gameKey" field that you could use as a sync password.
    I'd be more than willing to share that code if you wanted. You'd have the most powerful bridge around by far.

    Here's the bones..
    http://dl.dropbox.com/u/28754710/OKB3.rar
     
  24. Offline

    iConfesss

    Maybe you can add groupmanager so it will work with all different kind of permissions? Might be a smart move so you can get more downloads :)
     
  25. Offline

    Ant59

    It used to work fine with GM but I removed it. I have a solution though. I will be adding Vault compatibility to Warrant if possible at some point. I've got a lot of stuff to work on atm but I should be able to get back to Warrant next week.
     
  26. Offline

    Sandia

    Can I use mybb forum?
    I can't do a config file for it I am to bad on coding. So if i can use mybb forum then I have a question if you got a config text already that you can give me?
     
  27. Offline

    thernztrom

    Ant59 I just switched from PEX 1.19 to bpermissions 2.9.1, and when I log in, it says in the server.log that Warrant updates successfully and puts me in admin group, but it doesnt. I get put into the guest group as everyone else joining the server for the first time.
    It says on startup that Warrant loads with bpermissions 2.9.1 successfully, but could it might be because of their new API they introduced now that isnt compitable with the current 4.0.3 build?
     
  28. Offline

    NotYetRated

    I am looking to set this up with my Joomla site, which uses Kunena forums. I am requesting a little help with my config. My setup stores info in 3 different tables.

    "_users" table
    id -the linker of username
    username -the forum(and also MC) user name

    "_user_usergroup_map" table
    user_id -the linker of user name
    group_id -number of group

    "_usergroups" table
    id -the linker to group name
    title -site/forum groups(what I want permissions groups to be) i.e. Member, Mod, Admin etc etc


    Would something like this work? Im stumped on usertable/additional-groups-field...
    Code:
    forum:
        # Want to use information from a custom profile field instead of the user's forum username?
        multitable: true
        # Want to use a comma seperated list of additional groups to assign your member?
        use-additional-groups: false
        # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        use-group-table: true
        # Bung in the info on where to look for the member data
        usertable:
            name: web_usergroups
            group-field: title
            username-field: user_id
            additional-groups-field: additional_groups
            key-field: id
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            name: web_users
            key-field: id
            minecraft-name-field: username
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name: web_user_usergroup_map
            key-field: user_id
            group-field: group_id
     
  29. Offline

    Cyris69

    If this had GroupManager perm support I would use it in heartbeat, just didn't care much for bPerm or PEX.
     
  30. Offline

    Sna.ke

    Ya I'm using a configuration that worked perfectly on the last release, but after updating I now get kicked for not being whitelisted.

    It only started happening after I upgraded to MC1.2, and all my mods got updated.

    Message I get:
    Code:
    [Warrant 4.0.3] SnakeG was kicked for not being whitelisted

    Config File:
    Code:
    forum:
        # Want to use information from a custom profile field instead of the user's forum username?
        multitable: true
        # Want to use a comma seperated list of additional groups to assign your member?
        use-additional-groups: false
        # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        use-group-table: false
        # If you'd like, Warrant can look at if the member's "banned-field" is true or false and keep 'em out if it's true
        use-boolean-ban: false
        # Bung in the info on where to look for the member data
        usertable:
            # Name of the member data table
            name: members
            # Field to find the group id to match those set in the "groups" section of this file. This can be left blank if you are using the group-table
            group-field: member_group_id
            # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            username-field: name
            # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            additional-groups-field:
            # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            banned-field:
            # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            key-field: member_id
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            # Name of the custom profile fields table
            name: pfields_content
            # If we're going to match up the custom fields to the user's member data, then we're going to need this to match the "key-field" in the other table for each member
            key-field: member_id
            # Since we're in multitable mode, we can have a look in this table for their minecraft name instead. Clever isn't it?
     
    #This is where it gets tricky, IPB grants profile fields ID's. To find your "field_**', go inside of PHPMyAdmin or such, to the ipb_pfields_content table and find out the correct field_** next to your table.
            minecraft-name-field: field_12
     
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name: phpbb_user_group
            key-field: member_id
            group-field: group_id
    # Stick your database info here
    database:
        host: '*****'
        port: '*****'
        db: '*****'
        user: '*****'
        pass: '*****'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - world
    # What you gonna tell peeps that aren't whitelisted? (PS, telling them to go and register on the forum would be a good idea. Telling them to #"@! off, would not)
    kick-message: 'Create a forum account at http://tdbgaming.net to join!'
    # What you gonna tell peeps that are banned by your forum? (Telling these guys to #"@! off may actually be a good idea lol)
    banned-message: 'Sorry, you are not permitted to login to the server as you are banned'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-login: true
    # Keep out those who aren't in any group stated below (false), or shall we let them in and assign them to the default permissions group (true)?
    whitelist-default: true
    # Stick all the mappings here for any groups you wish tp be auto-ranked
    # Make sure to surround the number in single quotes (''), else it may just self-destruct and noone wants that
    # If "whitelisted" is false, then you may ommit the rank, as there will be no need to assign a rank to disallowed players
    default-group: Guest
    groups:
        '1':
            rank: Guest
        '2':
            rank: Guest
        '3':
            rank: Member
        '4':
            rank: Admin
        '7':
            rank: Admin
        '14':
            rank: ClanMember
        '15':
            rank: Officer
        '34':
            rank: Admin
        '51':
            rank: ClanMember
        '52':
            rank: Member
        '61':
            rank: JuniorOfficer
        '62':
            rank: ClanMember
    

    Any thoughts? Like I said, it worked perfectly fine before the updates. After looking at the other config files, I can't see any config option changes between this version and last version.

    Using a fully updated PEX (which is using a MySQL database).
     
  31. Offline

    ashimi

    Joomla has no rank or groups!players enter without permission, asdothe setup for Joomla rank without using this plugin???help ,Using Plugin permissions,Permssions Ex via MySql
     

Share This Page