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

    Aurayu

    I'm having trouble setting up the custom field / multi-table in SMF 2.0

    I'm using the Core Feature Custom fields, which come pre-installed with SMF 2.0 as opposed to a separate mod. I have created a new custom profile field 'Minecraft Username' which people can edit and are forced to fill in when they register. I'm unsure as to what values to put in your config file.

    profiletable:
    name: smf_themes
    key-field: id_member
    minecraft-name-field: cust_minecr

    Obviously, the values put there do not work otherwise I wouldn't ask for your help!

    So, in my SMF installation, the 'smf_custom_fields' table contains information about the custom profile field, it's name, description, whether to be active etc. And the col_name is 'cust_minecr'.

    The actual values however, are stored within the 'smf_themes' table under the 'variables' column with field-name of 'cust_minecr'.

    Your help would be greatly appreciated, the plugin works great otherwise!
    Thanks, Joshua Finch
     
  3. Offline

    Ant59

    Are you using PEX, right?

    Fixed, re-download the same version :)

    profiletable:
    name: smf_themes
    key-field: id_member
    minecraft-name-field: value

    Should work for ya :)

    Give the new upload a go. Didn't bother bumping up the version number, but it's a try at a fix for you :)

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

    patey

    usin permissions 3.1.6
     
  5. Cool cool

    Now i still have a little problem, i don't really understand HOW this plugin works. I tried to use phpBB but i never really got it working so i tried SMF and now it changes the permissions (pex) when i join but i still don't understand the connection between the config ranks and the forum.

    The way i think the plugin works is that if you are in the "SysOP" group on the forum you get sent to the SysOP group on the server right? But if you don't have a account on the forum you get sent to the Guest group on the server and you can't do anything untill you register.

    Or am i totally getting this wrong? :p
     
  6. Offline

    Ant59

    Give the latest upload a go. I should have solved the issue with the Permissions 3.x Warrant still trying to find the PEX classes to import.

    Bingo :) When a player logs in, Warrant checks their forum rank and sets them to the corresponding group in the game from the config. If they aren't in a forum group, or aren't registered, they are either set to the default-group or they're prevented from entering the server (as specified in the config.yml).

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

    strontkever

    Hi again :)

    i tried it, no errors this time, but players relogging/logging in still lose their old ranks and get set default,
    log here

    my config file is in my previous post, didnt change anything

    thnx

    [edit]

    my next question, is the plugin even build on making:
    non-registered players =keeps rank guest
    registered players =gets rank newbie added
    player who registered+applied =gets rank member added (i wont change their rank on the forum, but promote them in-game)

    Code:
    # 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
        '0':
            rank: newbie
            whitelisted: true
        # Admins are instantly granted all there rights as found in the Permissions configuration
        '1':
            rank: member
            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
     
  8. Offline

    HalfDream

    Can u make the code for woltlabs burning board pls. If u want i can give u a full version.
     
  9. Offline

    Aurayu

    Thanks Ant59, Works like a charm!
    Joshua Finch
     
  10. Tought so,

    though I am getting this error but everything seems to be working =/


    Config here


    Code:
    2021-04-21 03:30:31 [INFO] Fronix [/192.168.1.3:54924] logged in with entity id 2152 at ([hell] 22.90625, 71.0, 300.0625)
    2021-04-21 03:30:31 [INFO] [Warrant 3.0] Checking group for Fronix
    2021-04-21 03:30:31 [INFO] [Warrant 3.0] Set group of Fronix to SysOP
    2021-04-21 03:30:31 [SEVERE] Exception in thread "Thread-809"
    2021-04-21 03:30:31 [SEVERE] java.lang.NoClassDefFoundError: de/bananaco/permissions/Permissions
    2021-04-21 03:30:31 [SEVERE]     at net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:144)
    2021-04-21 03:30:31 [SEVERE]     at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:84)
    2021-04-21 03:30:31 [SEVERE]     at java.lang.Thread.run(Thread.java:662)
    2021-04-21 03:30:31 [SEVERE] Caused by: java.lang.ClassNotFoundException: de.bananaco.permissions.Permissions
    2021-04-21 03:30:31 [SEVERE]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2021-04-21 03:30:31 [SEVERE]     at java.security.AccessController.doPrivileged(Native Method)
    2021-04-21 03:30:31 [SEVERE]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    2021-04-21 03:30:31 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    2021-04-21 03:30:31 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    2021-04-21 03:30:31 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    2021-04-21 03:30:31 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    2021-04-21 03:30:31 [SEVERE]     ... 3 more
    

    But keep in mind that users can register with diffrent username and have the same Minecraft Username, that would create conflicts. Because there is no option to just allow one custom userfield value.
     
  11. Offline

    Aurayu

    Good point! However, I can set it so that this value cannot be changed once entered, unless an Admin does it. Which means they will not receive forum-rank benefits on Minecraft unless they register with their correct username.

    Either that, or I hack the plugin to add 'unique' validation checks when they first enter the username!


    @Ant59

    I'm getting the following error when users log in, error can happen anywhere between 1 and 3 times per user I believe. Any chance you are working on a fix to this, (whatever the problem is) and will this affect myself and my users in the meantime whilst I patiently wait for one? =)

    BTW: Using PEX (MySQL Backend)

    Code:
    2011-10-10 22:18:51 [SEVERE]    at java.lang.Thread.run(Unknown Source)
    2011-10-10 22:18:51 [SEVERE]    at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:84)
    2011-10-10 22:18:51 [SEVERE]    at net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:144)
    2011-10-10 22:18:51 [SEVERE] java.lang.NoClassDefFoundError: de/bananaco/permissions/Permissions
    2011-10-10 22:18:51 [SEVERE] Exception in thread "Thread-6085" 
    Thanks, Joshua Finch
     
  12. Offline

    xXKebobXx

    Is there anyway you can get this to work with groupmanager? I would love you if you could.(no homo). but really i use groupmanager because of the ingame commands and the simplicisty and would really like to use this plugin. Thanks if you can get it. if not well.... idk i guess permisisons3 or PEX.
     
  13. Offline

    Ant59

    You've left the default values of '0', '1', '2' in there. Do they coincidentally match up, or have you neglected to configure them?

    Should be fixed now :)

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

    tachidi

    Code:
    2021-04-21 03:30:31 [INFO] Fronix [/192.168.1.3:54924] logged in with entity id 2152 at ([hell] 22.90625, 71.0, 300.0625)
    2021-04-21 03:30:31 [INFO] [Warrant 3.0] Checking group for Fronix
    2021-04-21 03:30:31 [INFO] [Warrant 3.0] Set group of Fronix to SysOP
    2021-04-21 03:30:31 [SEVERE] Exception in thread "Thread-809"
    2021-04-21 03:30:31 [SEVERE] java.lang.NoClassDefFoundError: de/bananaco/permissions/Permissions
    2021-04-21 03:30:31 [SEVERE]     at net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:144)
    2021-04-21 03:30:31 [SEVERE]     at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:84)
    2021-04-21 03:30:31 [SEVERE]     at java.lang.Thread.run(Thread.java:662)
    2021-04-21 03:30:31 [SEVERE] Caused by: java.lang.ClassNotFoundException: de.bananaco.permissions.Permissions
    2021-04-21 03:30:31 [SEVERE]     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    2021-04-21 03:30:31 [SEVERE]     at java.security.AccessController.doPrivileged(Native Method)
    2021-04-21 03:30:31 [SEVERE]     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    2021-04-21 03:30:31 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    2021-04-21 03:30:31 [SEVERE]     at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    2021-04-21 03:30:31 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    2021-04-21 03:30:31 [SEVERE]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    2021-04-21 03:30:31 [SEVERE]     ... 3 more
    Still same problem.
     
  15. Offline

    Ant59

    Will try again later. Sorry for the bug folks.

    EDIT: You're using the old version of Warrant. Look at your log, it reads "[Warrant 3.0]".
     
  16. Offline

    tachidi

    Code:
    [Warrant 3.1] Enabled
    Hmm. But i'm still using bukkit 1240, can it be caused by this fact?
     
  17. Offline

    Ant59

    Yeah, try that version :)

    Shouldn't be a problem.

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

    MaKuMo

    Hi!

    My host doesn't allow remote MySQL Access... Is it possible to use this plugin with PHP generated csv?
     
  20. Offline

    Ant59

    Interesting idea. Might give that a try later and see if I can add it. Will benefit me too as I can't use mysql connections where I am staying so this would alllow me to test the plugin.
     
  21. Offline

    strontkever

    people get demoted from their current ranks, so the forum group names should not matter

    i just gave it a shot by changing 0 to newbie and 1 to member (forum groups)
    no effort, everyone becomes guest
    ---

    im starting to give up, im probably trying to use the plugin for something else then its made for.

    my whole thought on using it was since i dont have a whitelist:
    new player joins (gets default rank "guest" from bperms)
    new player registers on forum with their ign (gets rank "newbie" added)
    new player applies on forum (gets promoted to rank "member" manually)
    new player has ranks "guest" + "newbie" + "member"

    old player joins (keeps his ranks, no matter if hes registered on forum or not)

    donator joins (is member on forum, but keeps his "guest" "newbie" "member" "donator" ranks)

    im pretty sure it works for whitelisting people etc, but not for the way i would like to use it as above


    Thnx. stront
     
  22. Offline

    Ant59

    Yes, I know what you are trying to say, but if members are getting demoted then the numbers for the groups are not matching with your forum database. Show me a row from your user table and I will explain.
     
  23. Offline

    K3V1N32

    Ok, im using permissions 3.1.6 and have my config file 100% correct without a doubt and have Warrant 3.1
    Error: http://pastebin.com/CcYcLn95
    i have all the groups made and the sql db is connecting fine and permissions works fine w/o warrant.
     
  24. Offline

    tachidi

    It'll be fixed soon if i've understood correctly.
     
  25. Offline

    patey

    now that permissions 3 is inactive im switching to permissions ex, id like to use the sql database. will warrant work with permissionsex with a sql db?



    *EDIT* tried it anyway, seems to be working. i manually set my group to users, relogged and was admin again, checking console now

    **EDIT** it did work, although i realized im still getting errors from 3.04, gotta update XD


    also, this plugin has helped me a lot, least i can do is supply a better dl link ;)

    http://142.176.58.46/warrant.jar **i can always keep this dl up


    ***another EDIT*** warrant is causing a lot of errors with permissionsex...crashes server after a few logins

    Code:
    2011-10-11 20:37:52 [INFO] dieded4 [/65.94.207.212:51481]  logged in with entity id 40630 at ([pixel] 381.58500522399765, 65.0,  186.7137457396403)
    2011-10-11 20:37:52 [INFO] [Warrant 3.1] Checking group for dieded4
    2011-10-11 20:37:53 [INFO] [Warrant 3.1] Set group of dieded4 to gmod
    2011-10-11 20:37:53 [SEVERE] Exception in thread "Thread-22011"
    2011-10-11 20:37:53 [SEVERE] java.lang.NoClassDefFoundError: de/bananaco/permissions/worlds/WorldPermissionsManager
    2011-10-11 20:37:53 [SEVERE]     at  net.districtmine.warrant.WarrantPermissionsHandler.setGroup(WarrantPermissionsHandler.java:150)
    2011-10-11 20:37:53 [SEVERE]     at net.districtmine.warrant.WarrantProcess.run(WarrantProcess.java:84)
    2011-10-11 20:37:53 [SEVERE]     at java.lang.Thread.run(Unknown Source)

    most likely permissionsex problem?
     
  26. Offline

    tachidi

    Same. I think so too.
     
  27. Offline

    patey

    as i said above, it seems to work but i keep getting errors, and there's noticeable lag on logins..which sucks cause this plugin is a huge part of my server
     
  28. Offline

    Ant59

    The problem is simply that the plugin is still looking for bPermissions even when you're using something else, and of course, it shouldn't be. Really annoying bug.
     
  29. Offline

    K3V1N32

    well, i would suggest either a separate jar for each permissions, or have the user define the permissions that they are using in the config file. :/
     
  30. Offline

    Ant59

    No need. Warrant has always been able to tell which permission system is being used. It's an issue with java still looking for the class even when it is only defined in a conditional statement. Been trying to solve it for ages now.
     
  31. Offline

    codename_B

    You should try { } catch (NoClassDefFoundException e) {} or something?
     

Share This Page