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

    Probably.
     
  3. Offline

    patey

    @Ant59
    i'll test it and post my results


    also, the dl link is wget friendly, but still not browser friendly ;)



    *EDIT* works perfectly on the 1.9 build :) no errors, no lag, just as it was when i first started using it ;)
     
  4. Offline

    Ant59

    Awesome :D
     
  5. Offline

    cakesterman

    i have a minecraft bukkit server and i want it so if u sign up on my website they will be a member in game without me having to do anything.... this is very confusing all i want is something simple
     
  6. Offline

    Daje

    Still looking for some help, if anyone can offer some.
     
  7. Offline

    Fanatic

    Hi man. I got a little problem. It gives me this error:
    I do not know what is the problem :( I know I did all the right MySQL tables right _._

    Here is my config

     
  8. Offline

    Trandox

    Does someone have a config file for IPB?
     
  9. Offline

    Nunnsy

    Hey there,

    I'm just having a few errors with support for multi groups on MyBB to PEX.
    Here is my 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: true
        # Bung in the info on where to look for the member data
        usertable:
            name: mybb_users
            group-field: usergroup
            username-field: username
            key-field: uid
            additional-groups-field: additionalgroups
        # This part ONLY counts if you've used 'multitable'. Make sure to match the key-fields up!
        profiletable:
            name: mybb_userfields
            key-field: ufid
            minecraft-name-field: fid4
    
    # Stick your database info here
    database:
        host: '****'
        port: '****'
        db: '****'
        user: '****'
        pass: '****'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - Survival
    # 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 need to be registered at www.TinyKraft.cu.cc in order to play!'
    # 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: 'The Banhammer has spoken! Appeal at www.TinyKraft.cu.cc'
    # Tell players that they've been assigned ranks when they login, or just do it silently in the background?
    notify-group-on-login: false
    # 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: 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: Guest
    groups:
        '5':
            rank: Guest
            whitelisted: true
        '2':
            rank: Citizen
            whitelisted: true
        '6':
            rank: Moderator
            whitelisted: true
        '9':
            rank: Donator
            whitelisted: true
        '3':
            rank: Admin
            whitelisted: true
        '4':
            rank: Admin
            whitelisted: true
        '8':
            rank: Admin
            whitelisted: true
    All the ranks are correct as I have some groups with special prefixes.

    Here is the error it comes with when someone with multi groups log on:
    Code:
    21:44:56 [INFO] Rorza81 [/124.185.124.94:52515] logged in with entity id 181570 at ([Survival] -168.76057392614243, 65.0, 257.3834324272273)
    21:44:59 [INFO] [Warrant 3.2] Checking group for Rorza81
    21:45:03 [INFO] [Warrant 3.2] Set group of Rorza81 to Donator
    21:45:03 [INFO] [Warrant 3.2] Rorza81 set to Donator from forum group 9
    21:45:07 [INFO] [Warrant 3.2] Set additional group of Rorza81 to Moderator
    21:45:07 [SEVERE] Exception in thread "Thread-11323"
    21:45:07 [SEVERE] java.lang.NoClassDefFoundError: de/bananaco/permissions/worlds/WorldPermissionsManager
    21:45:07 [SEVERE]       at net.districtmine.warrant.WarrantPermissionsHandler.setAdditionalGroup(WarrantPermissionsHandler.java:200)
    21:45:07 [SEVERE]       at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:99)
    21:45:07 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    21:45:08 [INFO] [Owner] Nunnsy: ..
    
    Any help would be greatly appreicated.

    Thanks,
    - Nunnsy

    Also, this when they have no other additional groups:

    Code:
    22:10:22 [INFO] [Warrant 3.2] Checking group for Nunnsy
    22:10:30 [INFO] [Warrant 3.2] Set group of Nunnsy to Admin
    22:10:30 [INFO] [Warrant 3.2] Nunnsy set to Admin from forum group 4
    22:10:30 [INFO] [Warrant 3.2] No Permissions group is found for forum additional group ''
    22:10:32 [SEVERE] java.lang.NullPointerException
    22:10:32 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile:63)
    22:10:32 [SEVERE]       at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:154)
    22:10:32 [SEVERE]       at net.minecraft.server.Packet254GetInfo.a(SourceFile:16)
    22:10:32 [SEVERE]       at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    22:10:32 [SEVERE]       at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:46)
    22:10:32 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile:94)
    22:10:32 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    22:10:32 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    22:10:32 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  10. Offline

    [qwerty]

    Could you please give me the format that I should use for XenForo? I'm not sure how to format the config file...


    Edit: @Ant59 do you know how to do this?
     
  11. Offline

    mrgreaper

  12. Offline

    drewbzz

    Got mine Working with SMF and Bukkit Permissions Very happy with this Plugin Cheers Mate
    mayas well post the Server info if you guys want to see it Working
    119.17.161.130:25569
    http://gamingaus.net/
    Thx For this Plugin XXXX
     
  13. Offline

    MetalMadness

    Would this work with xenforo?
     
  14. Offline

    darkcloud784

    I'd like to know if theres work for support with joomla 1.7 - usergroups aren't stored the same as in 1.5.

    Typical username, id, pass, register date, last visit date. In one table
    User ID with group ID in another
    Group ID with Group title in another XD
     
  15. Offline

    Sedrion

    The downloadlink is very dead.
     
  16. Offline

    Ablac

    I cant seem to figure out what im doing wrong :?
    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: 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: 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: true
    # 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: field_value
    # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
    additional-groups-field: secondary_group_ids
    # 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: 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: xf_user_field_value
    # 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: user_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: field_value
    # This ONLY applies if you want to use a phpBB3 style group table
    grouptable:
    name: xf_user_group_relation
    key-field: user_id
    group-field: user_group_id
    # Stick your database info here
    database:
        host: 'theocraft.org'
        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: '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: 'You are Banned from Theocraft.org'
    # 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: default
    groups:
        # Here, normal registered members can go ahead and just join in as normal members
        # Admins are instantly granted all there rights as found in the Permissions configuration
        '2':
            rank: Registered
            whitelisted: true
        '3':
            rank: Helper
            whitelisted: true
        '4':
            rank: VIP
            whitelisted: true
        '46':
            rank: VIPPlus
            whitelisted: true
        '5':
            rank: Mod
            whitelisted: true
        '6':
            rank: Smod
            whitelisted: true
        '7':
            rank: Admin
            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
    The server log is giving
    Code:
    2011-11-22 11:19:43 [WARNING] [Warrant 3.2] SQLException! Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-11-22 11:19:43 [SEVERE] Exception in thread "Thread-2093" 
    2011-11-22 11:19:43 [SEVERE] java.lang.NullPointerException
    2011-11-22 11:19:43 [SEVERE] 	at com.alta189.sqlLibrary.MySQL.DatabaseHandler.sqlQuery(DatabaseHandler.java:77)
    2011-11-22 11:19:43 [SEVERE] 	at net.districtmine.warrant.WarrantSql.sqlQuery(WarrantSql.java:28)
    2011-11-22 11:19:43 [SEVERE] 	at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:57)
    2011-11-22 11:19:43 [SEVERE] 	at java.lang.Thread.run(Unknown Source)
    
    My permissions plugins are
    PermissionsBukkit
    SuperPermsBridge
     
  17. Offline

    Stortcraft

    Hi so will this mean when a user signs up on our forums it will auto rank them to what i want them to rank up to e.g default-member? thanks it would be a great help
    -Max
     
  18. Offline

    Max Black

    Is there a verbose option? I'm getting some SQL errors, and it would help if I could see the entire query being generated. Thanks

    UPDATE: I figured it out, appearently my version of MySQL requires that column names in the SELECT statement (ex group) need to be escaped (`group`), is there a way you can add this? I tried adding these marks through the config file (replacing the column name group with '`group`') but it didn't seem to work. Oddly, when I run both queries in MySQL the one without quotes fails, and the one with succeeds (I didn't change anything else).
     
  19. Offline

    blaize9

    any plan on adding group manager support again?
     
  20. Offline

    robxu9

    Whoo, bukkit 1.0 madness!

    alta189's sql library seems to be screwing up...
    2011-11-28 20:40:26 [SEVERE] Exception in thread "Thread-65"
    2011-11-28 20:40:26 [SEVERE] java.lang.NoSuchMethodError: com.alta189.sqlLibrary.MySQL.DatabaseHandler.<init>(Lnet/districtmine/warrant/WarrantSql;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    2011-11-28 20:40:26 [SEVERE] at net.districtmine.warrant.WarrantSql.initialize(WarrantSql.java:23)
    2011-11-28 20:40:26 [SEVERE] at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:32)
    2011-11-28 20:40:26 [SEVERE] at java.lang.Thread.run(Thread.java:679)

    Oh, and for bPermissions, is it possible that you can prevent it from overwriting permissions?
    (because per-player permissions are defined like this:
    xu_robert:
    - member
    - admin
    - p:bukkit.command.gamemode

    and warrant overwrites all of them, and since only member and admins are groups, it only replaces those D:)
     
  21. Offline

    WACOMalt

    Beautiful plugin! I have one request though. Is it possible to make your plugin control activation as well? Currently I am using forumacc plugin to do this which is far from streamlined to use both. I would like to have them join, unregistered or registered and notactivated would get a message sayign to register then run an /account activate command, and then they would get activated, and only then moved to Builders group.

    Users are put into a default group, which works fine (whitelist-default: true). But I noticed you cant configure a message to send to the default group users. and thus I cant tell them to go register, or to run the activate command.

    Due to this the only way I can tell this to players is to have a kick message, so currently I am forced to do a real whitelist that kicks anyone not registered.

    all in all just some configuration for activation status would be amazing. I am using myBB and this is my config: http://pastie.org/2978597
     
  22. Offline

    elitecraft

  23. Offline

    WACOMalt

    I have one more question. when people get promoted on my server to AdvBuilder (via /pex user USERNAME group set AdvBuilders) Do they automatically get promoted on the forum to the corresponding group? And if not, does that mean that on Next login they would be demoted again?
     
  24. Offline

    Silentshadow

    This plugin only checks on log in or does it check periodically while the user is logged in? If it does not check while the user is logged in is it possible to add in a command to allow the user to force check themselves?
     
  25. Offline

    [qwerty]

    I'm not sure how to setup this plugin if it will not generate a config.yml that I can use with XenForo, does anyone have a config that I can use for that?

    I'm getting this:
    Code:
    2011-12-12 03:49:25 [WARNING] [Warrant 3.2] SQLException! Cannot load connection class because of underlying exception: 'java.lang.NumberFormatException: For input string: "null"'.
    2011-12-12 03:49:25 [SEVERE] Exception in thread "Thread-232"
    2011-12-12 03:49:25 [SEVERE] java.lang.NullPointerException
    2011-12-12 03:49:25 [SEVERE] at com.alta189.sqlLibrary.MySQL.DatabaseHandler.sqlQuery(DatabaseHandler.java:77)
    2011-12-12 03:49:25 [SEVERE] at net.districtmine.warrant.WarrantSql.sqlQuery(WarrantSql.java:28)
    2011-12-12 03:49:25 [SEVERE] at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:57)
    2011-12-12 03:49:25 [SEVERE] at java.lang.Thread.run(Thread.java:636)
     
  26. Offline

    MalcolmLC

    I was trying to see if this could work with wordpress but I failed , any one have a config for that ?
     
  27. Offline

    duffyboyo

    Hey first of all great plugin, but unfortunately it will not work for me, i am sure i have set up most things correct but it seems not to change my ranks ingame,
    I am using PermissionEX and latest warrant connecting to an SMF forum. file is as following
    Show Spoiler
    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: forum_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
    # Stick your database info here
    database:
        host: '(my host)'
        port: '3306'
        db: '(my db)'
        user: '(my user)'
        pass: '(my 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: Outsider
    groups:
        # Here, normal registered members can go ahead and just join in as normal members
        '0':
            rank: Citizen
            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 :)
        '6':
            rank: Donator
            whitelisted: true
        '2':
            rank: Administrator
            whitelisted: true
        '7':
            rank: Moderator
            whitelisted: true


    In The console it states that it is the following but then nothing happens. any help would be greatly appreciated
    "Warrant: 3.2] Checking group for duffyboyo"
     
  28. Offline

    Mr_H4mm3r

    I NEED this for groupmanger :-O I simply don't understand the other permission plugins.. Can you please add support or maybe make a new plugin who promote players when they register on the forum? :)

    Thanks
     
    Clem likes this.
  29. Offline

    robxu9

    I noticed in the Warrant jar file, you've licensed it under the GPL v2.
    So since I see no development... Are you going to release the source, or do we have to go through the hassle of trying to recreate your plugin ourselves for everyone else? D:
     
  30. Offline

    thernztrom

    Last time he logged in here was 2 months ago.. :/
     
  31. Offline

    Stortcraft

    Hey can u get this to work via a website sign up?
     

Share This Page