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

    brandon079

    No we're getting read time outs about every hour. The server just crashes. dynmap web messages still show up in console. I updated warrant and moved to permissions.
     
  3. Offline

    Ant59

    The old config was a Java properties file, which is much less prone to breaking from wrong formatting than YAML.

    Yes, rank case does matter, and the rank numbers must be in quotes ('')

    If you could post your config, that would be helpful. Make sure to remove your database info though :)

    If you've got a "banned" group on the forum, just set that group to be unwhitelisted :) I'll work on a method for changing the groupings in-game though too :)

    Added you to Skype. Let me know when you're next on.
     
  4. Offline

    Zottelchen

    i dont understand, how to setup banlist? i have SMF...
    @Ant59 Can you help me please? [cake]
     
  5. Offline

    Taranis01

    @Ant59
    oh, u already added whitelisting into warrant :)
    just for to be sure: is Warrant supporting Multigroup?
     
  6. Offline

    Ant59

    Warrant 2.2 now adds support for engines like phpBB3!

    Sure, let me know where you're going wrong. How are you going about banning members?

    Absolutely supports it It can assign additional groups from a comma separated list of ids such as the additional_groups field in SMF.

    However, the whitelisting only applies to the primary group :)
     
  7. Offline

    Zottelchen

    i ban members normal with SMF IP and Email ban.... can it read out in the table "smf_ban_groups" the field "name"? how do i configure that?

    and i've got an error: (only permissions & warrant to test at CB953)
    Code:
    2011-07-07 17:48:24 [INFO] Starting minecraft server version Beta 1.7.2
    2011-07-07 17:48:24 [INFO] Loading properties
    2011-07-07 17:48:24 [INFO] Starting Minecraft server on 127.0.0.1:25565
    2011-07-07 17:48:24 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-904-g9277096-b953jnks (MC: 1.7.2)
    2011-07-07 17:48:24 [INFO] [Permissions] (Yeti) was initialized.
    2011-07-07 17:48:24 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    2011-07-07 17:48:24 [INFO] Preparing level "world"
    2011-07-07 17:48:24 [INFO] Preparing start region for level 0 (Seed: -612775144646813197)
    2011-07-07 17:48:25 [INFO] Preparing start region for level 1 (Seed: -612775144646813197)
    2011-07-07 17:48:25 [INFO] Preparing spawn area: 3%
    2011-07-07 17:48:26 [INFO] [Warrant 2.2] Permissions version 3.1.6 loaded.
    2011-07-07 17:48:26 [INFO] [Warrant 2.2] Enabled
    2011-07-07 17:48:26 [INFO] Done (0,179s)! For help, type "help" or "?"
    2011-07-07 17:48:30 [INFO] [Warrant 2.2] Detected login of Zottelchen
    2011-07-07 17:48:30 [INFO] Zottelchen [/127.0.0.1:56137] logged in with entity id 120 at ([world] 4.28125, 57.0, -152.1875)
    2011-07-07 17:48:30 [SEVERE] Exception in thread "Thread-14"
    2011-07-07 17:48:30 [SEVERE] java.lang.NullPointerException
    2011-07-07 17:48:30 [SEVERE]     at net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:55)
    2011-07-07 17:48:30 [SEVERE]     at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:80)
    2011-07-07 17:48:30 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    
    and here is my configuration:
    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 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:
    # Stick your database info here
    database:
    i dont make this public :D
    # 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: 'Registriere dich auf www.crafterkultur.de.vu im Forum und lass dich freischalten!'
    # 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: 'Du bist im Forum gebannt = du bist hier gebannt!'
    # 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 (true), or shall we let them in and assign them to the default permissions group (false)?
    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
    groups:
        # 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':
            rank: Moderator
            whitelisted: true
        '5':
            rank: Crafter
            whitelisted: true
        '6':
            rank: Spieler
            whitelisted: true
        '8':
            rank: SuperCrafter
            whitelisted: true
    some ideas?
     
  8. Offline

    Ant59

    That error is most likely caused by the groups not matching up right. In fact, that's the only thing I know that causes that error.

    As for the banning with SMF's internal system, I will look into it for you.
     
  9. Offline

    brandon079

    Here is my config. It is setup for Joomla and ccBoard.

    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
        # Bung in the info on where to look for the member data
        usertable:
            name: jos_ccb_users
            group-field: rank
            username-field: user_id
            additional-groups-field: additional_groups
            key-field: user_id
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            name: jos_users
            key-field: id
            minecraft-name-field: username
    # Stick your database info here
    database:
        host: 'removed'
        port: '3306'
        db: 'minecraft'
        user: 'removed'
        pass: 'removed'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - world
        - world_nether
    # 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 fuck off, would not)
    kick-message: 'Sorry, you are not permitted to login to the server at your current rank'
    # 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 (true), or shall we let them in and assign them to the default permissions group (false)?
    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
    groups:
        '22':
            rank: Lord
            whitelisted: true
        '3':
            rank: Lady
            whitelisted: true
        '23':
            rank: Duke
            whitelisted: true
        '8':
            rank: Duchess
            whitelisted: true
        '25':
            rank: Earl
            whitelisted: true
        '24':
            rank: Knight
            whitelisted: true
        '5':
            rank: Squire
            whitelisted: true
        '6':
            rank: Merchant
            whitelisted: true
        '4':
            rank: Citizen
            whitelisted: true
        '26':
            rank: Dunce
            whitelisted: true
     
  10. Offline

    Zottelchen

    thank you :D it seems to work and i can wait for the smfban :D till then there is still /ban: D

    And a big sorry for my bad english^^ i come from germany ^^

    @Ant59
    whitelist don't work? everybody can conenct to our server and is a normal player ("Spieler" in my config...)
    why?

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

    brandon079

    I have a feeling the whitelist setting is backwards. I want players not in a group to be allowed in under the defualt group (visitor) so i have it set to false. Visitors are instead getting kicked.

    Edit: I just tested my theory. I change whitelist default to true and visitors can get in again.
     
  12. Offline

    bocaj812

    I'm getting the same error, and my groups match up perfectly

    Code:
    16:28:14 [INFO] [Warrant 2.2] Detected login of bocaj812
    16:28:16 [SEVERE] Exception in thread "Thread-854"
    16:28:16 [SEVERE] java.lang.NullPointerException
    16:28:16 [SEVERE] 	at net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:55)
    16:28:16 [SEVERE] 	at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:80)
    16:28:16 [SEVERE] 	at java.lang.Thread.run(Thread.java:680)
    
    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: users
            # Field to find the group id to match those set in the "groups" section of this file
            group-field: rank
            # 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: 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:
        - JMCS
        - JMCS_nether
        - JMCS_skylands
    # 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
    groups:
        # Here, normal registered members can go ahead and just join in as normal members
        '1':
            rank: High_King
            whitelisted: true
        # Admins are instantly granted all there rights as found in the Permissions configuration
        '2':
            rank: Kings
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one
        '3':
            rank: Dukes
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one
        '4':
            rank: Knights
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one
        '5':
            rank: Architects
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one
        '6':
            rank: Nobles
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one
        '7':
            rank: Commoners
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one
        '8':
            rank: Nomads
            whitelisted: true
        # Let's say this group is banned for example. We can forget about the rank because they don't deserve one
        '9':
            rank: Fugitives
            whitelisted: true
    
     
  13. Offline

    brandon079

    Same here
     
  14. Offline

    Ant59

    Sorry guys, it wasn't checking if the user had any parent groups to start with before trying to remove them all lol. Try the v2.2.1 download. Fingers crossed, it solves the problem. Make sure your config.yml has all the required fields as it stands in the example in the OP now too :)
     
  15. Offline

    bocaj812

    still getting the same error... :(
     
  16. Offline

    brandon079

    Thanks for the update. This plugins was exactly what I was look for. Your timing on switching over to permissions worked out perfect for our server.

    /me cross fingers

    If you would like you can post my sql config for Joomla1.5 and ccBoard.
    Code:
        # 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
        # Bung in the info on where to look for the member data
        usertable:
            name: jos_ccb_users
            group-field: rank
            username-field: user_id
            additional-groups-field: additional_groups
            key-field: user_id
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            name: jos_users
            key-field: id
            minecraft-name-field: username
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
    Ant59 likes this.
  17. Offline

    bocaj812

    I erased my user.yml 's in permissions, as to start with a clean slate, but it didn't work. I'll keep on trying, but I've changed the config, and I have seen in console, that it reads and gets the rank form the databse upon login, it just has an issue translating from warrnat to permissions... I don't quite understand

    ok so after deleting my permissions user.yml, I logged on got my correct rank, but still had an error, and then after traveling to another world, my rank there was never updated even though I have the world set in warrants config, to be affected by warrant, so i'm just gonna suggest and say the error miht have something to do with multi-world configurations?

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

    brandon079

    I figured out why I was getting the errors. I had Warrant set to affect world and world_nether permissions. But I do not have nether permissions setup.
     
  19. Offline

    Ant59

    Excellent! Does it all work now? :)

    @bocaj812 Is this the same problem that you are having?

    EDIT: I'm going to include a check that prevents non-existent Permissions worlds from throwing an error.

    Small update v2.2.2

    Just added a few error-catching checks :)


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

    Oscarius

    Can Warrant change a players' forum group based on their Permission group?
     
  21. Offline

    Ant59

    No, but I suppose it could be added if it's wanted. If you need it, I'll add it.
     
    Oscarius and bocaj812 like this.
  22. Offline

    brandon079

    I am still having random server freezing that started when I switched over to 2.0. The server doesn't completely freeze though. It seems like players timeout but plugins like dynmap and kiwiadmin still work. It seems like the server is in a programming loop or is trying to find information that isnt there. Sometimes it snaps out of it a few a few minutes.

    We are using a multi table system. The forum does not add user information to its table until they post to the forum. I am wondering if the problem could be due to some user having registered on the site (and having their user information in the sites user table) but not posting to the forum (so they dont have any rank information yet).

    Would it be possible to throw an error such as "No forum rank information available for ID #123"? I'm not how your plugin works when this happens so maybe you already have something like this.
     
  23. Offline

    bocaj812

    here,
    Code:
    
    12:47:32 [INFO] [Warrant 2.2] Detected login of bocaj812
    12:47:32 [INFO] bocaj812 [/127.0.0.1:65356] logged in with entity id 50 at ([JMCS_skylands] 152.78409951671588, 56.0, 771.6675176233061)
    12:47:32 [INFO] Creating user bocaj812
    12:47:35 [WARNING] [Warrant 2.2] Error in the config! The world JMCS may exist, but it has no Permissions loaded.
    12:47:35 [SEVERE] Exception in thread "Thread-55"
    12:47:35 [SEVERE] java.lang.NullPointerException
    12:47:35 [SEVERE] 	at net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:56)
    12:47:35 [SEVERE] 	at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:80)
    12:47:35 [SEVERE] 	at java.lang.Thread.run(Thread.java:680)
    12:47:48 [INFO] [?8Foreigners?f?f?f] bocaj812: hi
    12:47:53 [INFO] bocaj812 lost connection: disconnect.quitting
    12:47:53 [INFO] Connection reset
    12:47:57 [INFO] bocaj812 [/127.0.0.1:65364] logged in with entity id 2220 at ([JMCS_skylands] 152.78125, 56.0, 771.65625)
    12:47:57 [INFO] [Warrant 2.2] Detected login of bocaj812
    12:47:59 [WARNING] [Warrant 2.2] Error in the config! The world JMCS may exist, but it has no Permissions loaded.
    12:47:59 [WARNING] [Warrant 2.2] Error in the config! The world JMCS_nether may exist, but it has no Permissions loaded.
    12:47:59 [WARNING] [Warrant 2.2] Error in the config! The world JMCS_skylands may exist, but it has no Permissions loaded.
    12:47:59 [INFO] [Warrant 2.2] Set group of bocaj812 to Kings
    12:47:59 [INFO] [Warrant 2.2] bocaj812 set to Kings from forum group 2
    
    It's still broken, but it explains it better, I was not set a group after logging in the first time, the second time however, I was set a group, but it did not write to permissions, so I was never updated from the default group.

    I would suggest that just to avoid conflict you assign them a meaningless rank such as 5000, and just have whitelist take care of it.

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

    brandon079

    That would mean I would have to add table entries for 100's of players and constantly have to keep new ones updated.
     
  25. Offline

    ACallander

    Is this plugin compatible with xenforo? I use xenforo for members to register to become members and this would make it much easier if it was compatible.
     
  26. Offline

    bocaj812

    just execute an sql command like

    Code:
    UPDATE table SET rankfield = replace(rankfield,'null','5000')
    And just add the rank to the data that gets put into the table upon registering its like two words and a comma
     
  27. Offline

    brandon079

    You are misunderstanding the issue.

    Site Table
    ID Username
    1 Bob
    2 Tom
    3 Rick
    4 Jane
    5 Lisa

    Forum Table
    ID Rank
    1 4
    2 4
    4 6

    If you notice above not all users are in the Forum Table. This is because their row does not get added until they have posted to the forum. Yes I could potentially make a script that adds any user in the user table to the forum table but that seems like a backwards way of doing things. It would make more since for me if the plugin just checked.

    something like:

    Is user listed in table 1
    whats their id #
    Is id listed in table 2
    if not, send player to default group (if no whitelist)
    if yes, what is players group
     
  28. Offline

    Taranis01

    @Ant59
    is Warrant also able to use a MySQL-using Permissions?
     
  29. Offline

    ryguy222

    I have a system that adds people into a certain phpBB group after they say purchase a premium account. Basically, gets them there permissions instantly after their donation instead of having to wait for an admin. So I thought I'd give this plugin a go, however it's not working so well.

    I'm using the latest essentials, and my groups do match.

    My config:
    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: 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: 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?
            # 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!
            # 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: '*******'
        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 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
    groups:
        '8':
            rank: Premium
            
    I have the account setup in phpBB group ID is 8, permissions group name is "Premium" and the username for this attempt is jeeringsole.

    Log:
    Code:
    2011-07-09 13:16:57 [INFO] [Warrant 2.2] Detected login of jeeringsole
    2011-07-09 13:16:57 [INFO] jeeringsole [/70.162.141.249:60884] logged in with entity id 165 at ([world] 0.5, 70.0, 0.0625)
    2011-07-09 13:16:58 [SEVERE] Exception in thread "Thread-2774"
    2011-07-09 13:16:58 [INFO] [CONSOLE] Welcome back, jeeringsole
    2011-07-09 13:16:58 [SEVERE] java.lang.UnsupportedOperationException: Not supported yet.
    2011-07-09 13:16:58 [INFO] Unknown console command. Type "help" for help.
    2011-07-09 13:16:58 [SEVERE]     at org.anjocaido.groupmanager.permissions.NijikoPermissionsProxy.checkWorld(NijikoPermissionsProxy.java:132)
    2011-07-09 13:16:58 [INFO] [CONSOLE->jeeringsole] Hey there, jeeringsole!
    2011-07-09 13:16:58 [INFO] Unknown console command. Type "help" for help.
    2011-07-09 13:16:58 [SEVERE]     at net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:53)
    2011-07-09 13:16:58 [INFO] [CONSOLE->jeeringsole] Welcome to My Minecraft Server
    2011-07-09 13:16:58 [SEVERE]     at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:80)
    2011-07-09 13:16:58 [INFO] Unknown console command. Type "help" for help.
    2011-07-09 13:16:58 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    I am using the default world for the worldname, essentialsgroup manager is setup for 'world' so i'm not too sure what the issue is.
    Any help would be greatly appreciated, as it seems a few others have the error as well.

    Thanks!
     
  30. Offline

    jasvecht

    It is compatible with any forum software you want, just find out the custom profile and such xenforo uses and fill it in.
    (On a side note, it surprises me it already supports custom fields, since its not even near completion)

    It *should* support all forms of the original permissions, don't take my world on it though. Ill test it out. I believe Antony uses the API, in which case it should be OK. But since I remember P3 used to not support it in the API, possibly Antony started editing the files instead..


    I am going to be starting on finding a way to integrate this with IPB now. I will post up if I succeed.

    Alright, success!

    I can also report that MySQL does, in fact, work with it. However, it will display you as being in "Nulladminnull".

    But I didn't notice any further problems, perhaps permissions themselves don't work, but no errors so it can't be that bad.

    The config I used:
    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: ipb_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: 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: 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: ipb_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_15
    
        # 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: 'localhost'
        port: '3306'
        db: 'MyDatabase'
        user: 'MyUser'
        pass: 'MyPassword'
    # 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
    groups:
        '4':
            rank: Admin
            whitelisted: true
    Not as difficult as I expected it would be. Cheers for Ant for making it in such a dynamic way! (Y)



    Edit:
    Show Spoiler

    Do not use this config for now, I only have this and P3 installed and...:
    14:00:57 [INFO] Read timed out
    14:00:57 [SEVERE] java.net.SocketException: Socket closed
    14:00:57 [SEVERE] at java.net.SocketOutputStream.socketWrite(Unknown Source)
    14:00:57 [SEVERE] at java.net.SocketOutputStream.write(Unknown Source)
    14:00:57 [SEVERE] at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    14:00:57 [SEVERE] at java.io.BufferedOutputStream.flush(Unknown Source)
    14:00:57 [SEVERE] at java.io.DataOutputStream.flush(Unknown Source)
    14:00:57 [SEVERE] at net.minecraft.server.NetworkWriterThread.run(SourceFile:116)
    14:00:57 [INFO] William_Winters lost connection: disconnect.endOfStream
    14:04:54 [INFO] [Warrant 2.2] Detected login of William_Winters

    Furthermore, my forum is rendered unresponsive out of nowhere. I'll take a look and see if I can find the reason, it might be the config, or it might not..


    Nevermind, seems other users have no problem visiting the forum or site yet I am slow as hell. Likely a problem on my end once again...

    And may I mention I find Permissions 3, especially the MySQL option, to be the vaguest least user friendly system I have seen in my live for a plugin meant for an administrator? I mean, seriously, was there anything left to do for them to make it even less user friendly or did child-abuse contact them already?!

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

    darkcloud784

    I use phpBB3, warrant keeps giving me this error when someone logs in

    Code:
    2011-07-12 08:41:44 [WARNING] [Warrant 2.2 SQL] Error at SQL Query: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE username= 'DarkCloud784" at line 1
    2011-07-12 08:41:44 [SEVERE] Exception in thead "Thread-55382"
    2011-07-12 08:42:44 [SEVERE] java.lang.NullPointerException
    2011-07-12 08:41:44 [SEVERE] at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:54)
    2011-07-12 08:41:44 [SEVERE] at java.lang.thread.run(Thread.java:636)

    This is my config
    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: '*********'
        port: '3306'
        db: 'forums'
        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 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
    groups:
        '1':
            rank: Default
            whitelisted: true
        '2':
            rank: Builder
            whitelisted: true
        '3':
            rank: Moderator
            whitelisted: true
        '4':
            rank: Admin
            whitelisted: true
     

Share This Page