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

    topsub

    is there a way to find out how to excape this? I am assuming i need to escape it in the config file where i define the groups?
     
  3. Offline

    Kalman Olah

    Nah, it has to be escaped in the function I think.
     
  4. Offline

    topsub

    ah hopefully he will answer.. This is the last thing i need and i can use this plugin.
     
  5. Offline

    Ant59

    This is an issue in Bukkit itself. I will try and find a workaround though for you.

    The problem lies in ConfigurationNode.java @ line 82:
    Code:
    String[] parts = path.split("\\.");
    It decides that the period is the beginning of a subnode.

    @<Edit by Moderator: Redacted mediafire url> Give this one a quick test for me please? <Edit by Moderator: Redacted mediafire url>

    If that works with the periods in group names, I will release it as 2.3.2 :)

    EDIT: Use the experimental version.

    You'll notice here, that this user does not have a permissions file yet as he hasn't logged in before. This is a minor issue, and every subsequent login now will work without throwing any errors. I will probably stick a check into Warrant at some point to check if the user has a permissions file already or not, but until then, just tell new players to relogin :)

    EDIT: Use the experimental version.

    @<Edit by Moderator: Redacted mediafire url> @<Edit by Moderator: Redacted mediafire url> Please use the experimental version in the OP. It should have fixes for both your problems now :)

    Please let me know if it causes any other strange errors or if it magically solves everything :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 13, 2017
  6. Offline

    topsub

    I have uploaded it to my server and waiting for someone to login.. I'm at work so i can't login myself to test.
    Thanks for your fast turn around i will let you know the results soon.
     
    Last edited by a moderator: Jul 13, 2017
  7. Offline

    Ant59

    No problem :) I too am at work, but noone watches my computer :p So I setup a little test server and it seems to be working fine, but I'll wait for results from your server to be sure :)
     
  8. Offline

    topsub

    Another question i have is when it pulls this database field from the database a user could be assigned to multiply groups, IE: ".7.4". Will this script do a parse to try and match the ".7". I am just wondering because right now i have a one to one relation and if i assigned them to multiply groups would it break it?
     
  9. Offline

    Ant59

    I'm sorry, but I don't quite follow what you're saying, could you explain it a bit more please? Soz!
     
  10. Offline

    topsub

    The database field that stores the groups are stored with a decimal in front. ex: '.7'. If i assign a user into 2 groups it could look like '.7.3'. Would this break the script when it looks up the users group?

    Also if it doesn't find a user on the website and it assigns it to the 'default' group. Is that the default group in the Permissions file?

    Thanks for your help!
     
  11. Offline

    Ant59

    The default group is the default that is assigned in Permission's groups.yml

    And yes, that will break the script if you have more than the string give in your config, in the database field as it will not be able to find the group to assign to. What forum engine are you running?
     
  12. Offline

    topsub

    Unless i am missing it i don't see warrant even enable when i start the server, Should i see it output to the server log?

    I am using <Edit by Moderator: Redacted mediafire url> as my CMS / Forum Solution

    error i get
    Code:
    2011-07-25 08:19:46 [SEVERE] Could not load 'plugins/Warrant.jar' in folder 'plugins':
    java.util.zip.ZipException: error in opening zip file
            at java.util.zip.ZipFile.open(Native Method)
            at java.util.zip.ZipFile.<init>(ZipFile.java:127)
            at java.util.jar.JarFile.<init>(JarFile.java:135)
            at java.util.jar.JarFile.<init>(JarFile.java:99)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:60)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:207)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:130)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:128)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:97)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 13, 2017
  13. Offline

    Ant59

    Well that is odd, considering it Warrant has no connection to a zip file whatsoever. Try downloading the experimental version out of the OP, instead of that link.
     
  14. Offline

    topsub

    I think that is what i did. but i will try it again. Please stand by.

    I was doing a wget from mediafire site and it didn't like that. So i don't think i was really getting the file. I downloaded the file, uploaded to one of my servers and did a wget and i see it enable in the server logs now.

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

    Oscarius

    Have you had any time to look into this yet?
     
  16. Offline

    Tesseracto

    MyBB support would be nice :)!
     
  17. Offline

    Ant59

    It's quite a big feature to add, so I'll get around to it when I have a decent amount of time.

    Already has MyBB support afaik.
     
  18. Offline

    topsub

    It worked. Thanks! This is awesome! Now to make it so when someone donates on the website it auto puts them into this group.

    Thanks for your update to make this work with decimals. I could provide a config for phpfusion if you like

    Could a feature be if they are in a user group called 'banned' then they can't connect with message? That way i don't have to add a database field?

    Just a thought. Its eaiser for me with the cms to add a banned group then try and add a database field..

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

    Taranis01

    i already suggested that too
    The "banned-database-field" is only for, if u have a option to bann members in your forum (not a "banned"-Group) and its saved in another database field.
    I have this Problem, with IPBoard there is a Group for Banned players :(

    so the only way for us is using the whitelist :(

     
  20. Offline

    Ant59

    @topsub Exactly what Taranis said, just set the group as whitelisted: false :)
     
  21. Offline

    brandon079

    Is there any way you could add support for permssions 3.1.5. Currently this plugin isn't working for us with that version of permissions. The reason we use the older version is due to mcMMO not being compatible with 3.1.6. To our players mcMMO is more important than warrant so unfortunately we have not been able to take advantage of Warrant since we switched to permissions with you.
     
  22. Offline

    CappyT

    How can i figure out the config for mybb? Is compatible?

    I've tried, with no result. =(
     
  23. Offline

    philulrich

    Okay.
    Good News: I got this working on XenForo with CB 1000
    Here is a working config for XenForo

    Code:
    forum:
        multitable: false
        use-additional-groups: true
        use-group-table: false
        use-boolean-ban: true
        usertable:
            name: xf_user
            group-field: user_group_id
            username-field: username
            additional-groups-field: secondary_group_ids
            banned-field: is_banned
    database:
        host: 'localhost'
        port: '3306'
        db: 'xenforo'
        user: 'root'
        pass: '**********'
    worlds:
        - L33tCraft
    kick-message: 'Please create a user at http://www.l33tcraft.com/ with your IGN.'
    banned-message: 'Sorry, you are not permitted to login to the server as you are banned'
    notify-group-on-login: true
    whitelist-default: false
    groups:
        '1':
            rank: Visitor
            whitelisted: false
        '2':
            rank: Citizen
            whitelisted: true
        '3':
            rank: Admin
            whitelisted: true
        '4':
            rank: Moderator
            whitelisted: true
        '5':
            rank: Builder
            whitelisted: true
        '6':
            rank: Builder+
            whitelisted: true
        '7':
            rank: VIP
            whitelisted: true
        '8':
            rank: Architect
            whitelisted: true
        '10':
            rank: Owner
            whitelisted: true
    I do have one issue. When it tells a user what they have been assigned to, it has null to the left and right (e.g. nullCitizennull). In addition to that, when a second group is added, it lists the first group again with nullgroupnull. Any advice?

    P.S. When this ^ happens, permissions work as they should.

    One more thing, I use a plugin called AFKBooter and when the Citizen is default and VIP is additional (citizen can be booted, VIP can't), I can still be booted when I shouldn't be able. Is there a fix for that?
     
  24. Offline

    Survivorman

    Hi, was wondering what needs to be set here for the use of profile fields instead of usernames on phpBB3?
    Code:
        # 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?
            :
        # This ONLY applies if you 
    We require our forum users to fill in their Minecraft username in a profile field with ID "minecraftu".
     
  25. Offline

    philulrich

    If that is in the same table as your Group ID, just change the username to minecraftu, other wise what you have to do is use the multi table, set the name to minecraftu and the key-field to the userid in that table.
     
  26. Offline

    sat0n101

    umm i have no idea what i did wrong but no matter what i do i always get tis :
    Code:
    2011-07-28 14:03:02 [INFO] sat0n101 [/127.0.0.1:3788] logged in with entity id 143 at ([world] -60.168630580553355, 49.0, -90.99074720853771)
    2011-07-28 14:03:02 [INFO] [Warrant 2.4] Detected login of sat0n101
    2011-07-28 14:03:02 [WARNING] [Warrant 2.4 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 'INNER JOIN epicserv_forumprofile_fields_data ON (epicserv_forumusers.user_id = e' at line 1
    2011-07-28 14:03:02 [SEVERE] Exception in thread "Thread-17"
    2011-07-28 14:03:02 [SEVERE] java.lang.NullPointerException
    2011-07-28 14:03:02 [SEVERE]     at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:54)
    2011-07-28 14:03:02 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    Here is my config :
    Code:
    forum:
        # Want to use information from a custom profile field instead of the user's forum username?
        multitable: true
        # Want to use a comma seperated list of additional groups to assign your member?
        use-additional-groups: false
        # If we're using phpBB3 or a forum system like it, then it's a pain in the arse to find a user's group! Are we using phpBB3?
        use-group-table: true
        # 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: epicserv_forumusers
            # 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?
            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: epicserv_forumprofile_fields_data
            # 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: pf_minecraft
        # This ONLY applies if you want to use a phpBB3 style group table
        grouptable:
            name: epicserv_forumuser_group
            key-field: user_id
            group-field: group_id
    # Stick your database info here
    database:
        host: 'uk1clan.net'
        port: '3306'
        db: 'c1uk1clan'
        user: 'c1uk1clan'
        pass: '********'
    # 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 #"@! 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:
        '13':
            rank: Noob
            whitelisted: true
        '12':
            rank: Member
            whitelisted: true
        '11':
            rank: Builder
            whitelisted: true
        '14':
            rank: Donator
            whitelisted: true
        '10':
            rank: Moderator
            whitelisted: true
        '9':
            rank: SemiAdmin
            whitelisted: true
        '8':
            rank: Admin
            whitelisted: true
    And here is my mySQL database :

    Code:
    SQL result
    
    Host: localhost
    Database: c1uk1clan
    Generation Time: Jul 28, 2011 at 02:12 PM
    Generated by: phpMyAdmin 3.3.7deb5 / MySQL 5.1.49-3
    SQL query: SELECT * FROM `epicserv_forumprofile_fields_data` LIMIT 0, 30 ;
    Rows: 1
    user_id     pf_minecraft
    2     sat0n101
    And THIS
     
  27. Offline

    sct

    As a couple people have mentioned in this thread it doesn't set permissions properly if you are using Permissions 3.1.5. I have to use 3.1.5 because of the compatibility with McMMO. Is there any work around for this? Haven't seemed to find a solution yet.
     
  28. Offline

    Xemnias

    is it work with Simple : press of Wordpress ?
    :oops:
     
  29. Offline

    dark navi

    Is this compatible with BukkitPermissions yet?
     
  30. Offline

    topsub

    I have no idea what happen but i have an error: Any idea whats its complaining about?
    Code:
    [WARNING] [Warrant 2.4] Error in the config! The world MMOMinecraft may exist, but it has no Permissions loaded.
    Here is the 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: ws_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: user_groups
            # If we're not using multitable mode, then which field should we look for the member's minecraft username in?
            username-field: user_name
            # And if "use-additional-groups" is enabled... where is the comma seperated list of additional groups?
            additional-groups-field:
            # Has a player been banned? If "use-boolean-ban" is true, this field will be used to determine if the user can come in or not. OVERRIDES WHITELIST!
            banned-field:
            # If "use-additional-groups" is on, then we're going to need a way to link this user to their extra profile fields
            key-field: 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: '****.com'
        port: '3306'
        db: '****'
        user: '*****'
        pass: '****'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - MMOMinecraft
    # 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: 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:
        '.3':
            rank: Citizen
            whitelisted: true
        '.4':
            rank: Settler
            whitelisted: true
        '.5':
            rank: Supporter
            whitelisted: true
        '.2':
            rank: Moderator
            whitelisted: true
        '.7':
            rank: Admins
            whitelisted: true
    Another thing i noticed is it doesn't do this for every user. Seems when i log in and it trys to set me as an admin it does it. but when a friend logs in its fine?

    Code:
    2011-07-29 00:09:26 [INFO] topsub [/192.168.0.1:52976] logged in with entity id 556 at ([MMOMinecraft] -753.59375, 94.78125, 637.125)
    2011-07-29 00:09:26 [INFO] [Warrant 2.4] Detected login of topsub
    2011-07-29 00:09:27 [WARNING] [Warrant 2.4] Error in the config! The world MMOMinecraft may exist, but it has no Permissions loaded.
    2011-07-29 00:09:27 [INFO] [Warrant 2.4] Set group of topsub to Admins
    2011-07-29 00:09:27 [INFO] [Warrant 2.4] topsub set to Admins from forum group .7
     
    2011-07-29 00:09:32 [INFO] adam123t [/24.136.154.120:14904] logged in with entity id 3495 at ([MMOMinecraft] -765.0679022386519, 99.76636799395752, 624.8567273920801)
    2011-07-29 00:09:32 [INFO] [Warrant 2.4] Detected login of adam123t
    2011-07-29 00:09:33 [INFO] [Warrant 2.4] adam123t has not registered and belongs to default group
    
     
  31. Offline

    CappyT

    I have some troubles after installing WARZONE plugin... Seems conflicting with warrant...

    Code:
    30.07 17:57:12 [Server] SEVERE     at java.lang.Thread.run(Thread.java:722)
    30.07 17:57:12 [Server] SEVERE     at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:29)
    30.07 17:57:12 [Server] SEVERE     at net.districtmine.warrant.WarrantSql.initialize(WarrantSql.java:25)
    30.07 17:57:12 [Server] 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
    30.07 17:57:12 [Exception] Exception in thread "Thread-34"
    30.07 17:57:12 [Exception] Server exception, restarting if server doesn't respond
    PLEASE HELP, MY USERS ARE NOT ABLE TO LOGIN!
     

Share This Page