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

    ryguy222

    Getting the exact same error. Something wrong with the syntax. Using essentials/groupmanager and RB 953
     
  3. Offline

    darkcloud784

    I actually use permissions 3.x.x... Which this is supposed to be designed for.
     
  4. Offline

    LibertasMens

    So, trying to figure this plugin out a bit. Can I have it generically check any database, such as my custom (ie not from a forum) SQL database, and allow people in?
     
  5. Offline

    darkcloud784

    So has anyone figured out what kind of syntax error this refers to?
    Phpbb3 3.0.9
    phpbb_' Prefix
    standard phpbb database structure


     
  6. Offline

    HotelErotica

    When someone joins my server the permissions plugin adds them to the user file at whatever rank they've been set at by Warrant, The problem is if someone joins the server as a guest aka the default group it, it saves them as that and whatever edit you make on the forums doesnt change a thing since permissions seems to pull from its saved users instead of using the set rank warrant hands out.
     
  7. Offline

    jasvecht

    02:11:41 [WARNING] [Warrant 2.2] Error in the config! The world Creative may exist, but it has no Permissions loaded.
    02:11:41 [WARNING] [Warrant 2.2] Error in the config! The world Lobby may exist, but it has no Permissions loaded.
    02:11:41 [WARNING] [Warrant 2.2] Error in the config! The world Survival may exist, but it has no Permissions loaded.


    Odd... What may cause that?
     
  8. Offline

    brandon079

    We use mcMMO Permissions and Warrant on our server. Right now those 3 plugins do not get along. We were getting constant server freezes that we tract down to be an issue with mcMMO and the latest version of Permissions (3.1.6). We downgraded Permissions to 3.1.5 and the crashes were gone. THe new problem is with 3.1.5, Warrant only adds the user but never adds the group to Permissions user config.

    Now it looks like things are going to be getting yet more complications now that Bukkit has added built in Permissions.
     
  9. Offline

    topsub

    Hey,

    I am trying to set this up to port to php fusion. Here is an example of the group table and user table.. ( stripped user table down to the ones that are needed...




    Code:
    INSERT INTO `ws_user_groups` (`group_id`, `group_name`, `group_description`) VALUES
    (2, 'Moderator', ''),
    (3, 'Citizen', ''),
    (4, 'Settler', ''),
    (5, 'Supporter', ''),
    (6, 'Executive', ''),
    (7, 'Admin', ''),
    (8, 'OP', '');
    

    Code:
    CREATE TABLE IF NOT EXISTS `ws_users` (
      `user_id` mediumint(8) unsigned NOT NULL auto_increment,
      `user_name` varchar(30) NOT NULL default '',
      `user_email` varchar(100) NOT NULL default '',
      `user_groups` text NOT NULL,
      `user_gamename` varchar(100) NOT NULL,
      PRIMARY KEY  (`user_id`),
      KEY `user_name` (`user_name`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
    


    And the db record for the "user_groups" has a decimal in it. Can this handle for that?


    So a record for user_groups would be ".2" Which would link to Moderator. Also the group table as you see just does a one way like.. IE: they match the user_groups ID to the group_id in the ws_user_groups table. Can this handle that?


    Thanks for any input on this.
     
  10. Offline

    Soulstormer

    Dosn't seem to work with the WoltLab Burning Board 3.1.5, expect if I use the userOnlineGroupID in the wcf#_user table. But this one just tells which group is shown to other forum users.

    I think this is caused by the multiple groups?
    There is a table which contains the userID and the group, 1 row per group. So a user could have unlimited groups. Images of the affected tables and the config in the attached zip.

    If someone needs the config with the displayed group for WBB 3.1.5 use this one:
    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: wcf1_user
            # 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: userOnlineGroupID
            # 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: userID
        # 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: wcf1_group
            # 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: groupID
            # 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: wcf1_user_to_groups
            key-field: userID
            group-field: groupID
    # Stick your database info here
    database:
        host: 'localhost'
        port: '3306'
        db: 'wcf'
        user: 'root'
        pass: 'test88'
    # Which worlds on your server should Warrant affect the permissions for?
    worlds:
        - eldercraft
    # 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:
        '2':
            rank: Guest
            whitelisted: true
        '3':
            rank: Member
            whitelisted: true
        '4':
            rank: Admins
            whitelisted: true
        '5':
            rank: Moderator
            whitelisted: true
        '6':
            rank: Donator
            whitelisted: true
     

    Attached Files:

  11. Offline

    Ant59

    Apologies to everyone who needs support and hasn't received any help. I have been swamped with other stuff and this isn't near the top of my priorities right now. I will try and get on later and help diagnose and fix any problems that you're having with Warrant.
     
  12. any way to do this with a webs.com website?
     
  13. Offline

    Taranis01

    you can use it with any registration-like website, as long you have access to the mysql-databse where the data is saved
     
    Ant59 likes this.
  14. thx
     
  15. Offline

    nova779

    does this work with phpbb?
     
  16. Offline

    Ant59

    Okay, I've managed to find some spare time and I've looked into the errors people have had and I think I may have found fixes for the majority of them. Try downloading 2.3 and give it a go to see if it cures your error. Sorry for the wait.

    Thanks to @Kalman Olah also, since this fix was a joint effort and has been applied to both our plugins.
     
    Taranis01 likes this.
  17. Offline

    topsub

    In the description at the top it says phpbb3
     
  18. Offline

    nova779

    i did not see that thanks
     
  19. Offline

    topsub

    Could you provide some insight into my challenge a page back? So i can see if it will work for me?
     
  20. Offline

    Ant59

    @topsub Afaik, yeah what you want to achieve should work fine with multitable. I don't see why the decimal point should cause a problem either, especially not if you use single quotes (') to wrap it in the YML file.

    URGENT UPDATE!

    If you are using a version older than 2.3.1, the please update to the latest version to fix security flaws that can allow unwhitelisted players in!

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

    LibertasMens

    I get this every time someone logs in.
    Code:
    2011-07-22 10:34:36 [INFO] [Warrant 2.2] Detected login of LibertasMens
    2011-07-22 10:34:36 [INFO] LibertasMens [/###.###.###.###:50466] logged in with entity id 51 at ([Sky] 33.84375, 61.0, -181.125)
    2011-07-22 10:34:37 [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 'group FROM ##database## WHERE toon = 'LibertasMens'' at line 1
    2011-07-22 11:52:31 [SEVERE] Exception in thread "Thread-1748"
    2011-07-22 11:52:31 [SEVERE] java.lang.NullPointerException
    2011-07-22 11:52:31 [SEVERE] 	at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:54)
    2011-07-22 11:52:31 [SEVERE] 	at java.lang.Thread.run(Unknown Source)
     
  22. Offline

    Ant59

    Then you have misnamed your fields.
     
  23. Offline

    LibertasMens

     

    Attached Files:

  24. Offline

    Boost

    Hi, I'm trying to get this on multiplay hosted server, made upload request and stuff and it came back with this kind of response "Unfortunately this addon failed to work correctly when we installed and tested.". Can you do something about this?( I have no idea how they tested it or how it failed)
     
  25. Offline

    Taranis01

    @Boost
    i guess he can't (as long u can't say how it failed). You can do something: change your hoster (to one with ftp-acces) - or put pressure on them to try it again. I guess "failed to work correctly" is just a petty excuse and they didn't even tried Warrant or didnt even tried to fix their problems.
     
  26. Offline

    Asphodan

    Players with a long name get an I/o error saying that the returned string was longer than expected. Using 2.3.1.
     
  27. Offline

    topsub

    I get this when i try to use the decimal
    Code:
     [INFO] [Warrant 2.2] No Permissions group is found for forum group '.7'
    
    This is my Config within warrant
    Code:
    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
    i removed the period from the database user group and the config file and when i logged in it set me to the correct usergroup just fine. So its something with the period that is causing an issue. Can you look into this to see why the period is making it not match up the field correctly?
     
  28. Offline

    Asphodan

    @Ant59

    Code:
    2011-07-24 13:15:34 [INFO] Creating user anunexpectedfly
    2011-07-24 13:15:34 [INFO] anunexpectedfly [/98.28.161.57:49612] logged in with entity id 176577 at ([world] 1733.09375, 72.0, 1375.125)
    2011-07-24 13:15:34 [INFO] [Warrant 2.3] Detected login of anunexpectedfly
    2011-07-24 13:15:34 [INFO] "Welcome to the server. You are safe from monsters until you are promoted. Be sure to have Redstone; stand in your house, and type "/modreq Promotion" to be checked for promotion to full user."
    2011-07-24 13:15:34 [SEVERE] Exception in thread "Thread-11195" 
    2011-07-24 13:15:34 [SEVERE] java.lang.NullPointerException
    2011-07-24 13:15:34 [SEVERE]     at net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:56)
    2011-07-24 13:15:34 [SEVERE]     at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:80)
    2011-07-24 13:15:34 [SEVERE]     at java.lang.Thread.run(Thread.java:662)
    2011-07-24 13:15:34 [INFO] connect from ip 98.28.161.57
    
     
  29. Offline

    Kalman Olah

    I can't fix it for you, but I can tell you what's causing it. Let's say you have a config like this:
    Code:
    '3'
        'test': 'derp'
    a function like getString("3.test") will return "derp".
    Note how we need to look for 3.test, meaning it's looking for a key called test, which is a subkey of 3.
    Now, if you call your key ".3", the function will be getString(".3.test"), and it'll look for a key called test, which is a subkey of 3, which is a subkey of absolutely nothing at all.
    You can see how this is bound to give errors.
    So do I. You were using PermissionsEx. Warrant still works great with Permissions 3 :).
     
  30. Offline

    topsub

    this cms stores the groups with a period in front of the group ID. Based on what your saying there is no fix for this?
     
  31. Offline

    Kalman Olah

    There probably is. You could escape the decimal point using a backward slash, I think. Ant59 will fix this :). He's good at that stuff.
    Please note that I could very well be completely and utterly wrong here. I'm just giving you my thoughts.
     

Share This Page