[ADMN/WEB] OKB3 - Bulletin Board Bridge - Now on BukkitDev! [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Kalman Olah, Jun 2, 2011.

  1. Offline

    Kalman Olah

  2. Offline

    Kalman Olah

    Yeah, I don't like bukkit's permissions. bPerms is cool though, the author's a cool guy.
     
  3. Offline

    Gwynei

    Thanks for replying, I guess I have to switch to another permissions system then. ;)

    Another question:

    I'm not asking if you would create a config file for me, I just wonder if the following is possible:
    - Users that are not registered on the forums can join the server, but cannot interact with the world (no build, no chests, etc. Just walk)
    - Users that are registered on the forums but not in a specific user group CAN build, CAN use chests, but cannot use plugin xyz.
    - Users that are registered on the forums AND are in the user group CAN build etc, and CAN use plugin xyz.
     
  4. Offline

    Kalman Olah

    It doesn't "update" itself. It gets all of its rank info straight from the forum DB. Live. Post your whitelist config :). If you're running in "secure" mode, you NEED to set "use-as-blacklist" to true, because anyone who doesn't /sync counts as an unregistered forum user.

    All possible using a permissions system and OKB3. :)

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

    Matt G

    Kalman, is there any way for the users to be synced with the forum automatically. As I understand it right now, they have to enter in a username and password, and it syncs with the forum. How do I set it so that it goes by name. For example, if username on forum is "Name" and name on minecraft is "Name" they will automatically be synced because they are both the same name.

    Thanks,
     
  6. Offline

    Kalman Olah

    You just use "normal" mode instead of "secure" mode. That mode syncs by minecraft username, not forum login.
     
  7. Offline

    SS94

    Hi Kalman,

    I love the sound of this plugin very much! Only thing is I have some questions and a situation I'm in:

    Well I run PHPBB and I seem to have entered all the DB Info correct but in the console It will just stop loading up my server at "connecting to database" It will just endlessly try to connect to the database. Would you happen to have a solution?

    Also, does the RANKID use the ID for the forum group ID or forum rank ID?

    Thanks in advance, not that It probably matters but I'm also running bPermissions.
     
  8. Offline

    Kalman Olah

    I can help you further if you post your config and an exact server log.
    KEep in mind that, if your MySQL database isn't hosted on the same machine as your forum, you need to give the MySQL user remote connection, UPDATE and SELECT permissions.
    You can use group ID or rank ID, depending on how you like to run your forum. They're both numbers, so OKB3 will accept both. I'd suggest the rank ID, as you can use this value to promote/demote/ban/unban people using OKB3.
     
  9. Offline

    SS94

    Thanks for responding,

    Here's the part of my console log that contains OKB3:

    Code:
    27.09 12:06:51 [Server] INFO [OKB3] [DB] Initializing MySQL connection...
    27.09 12:06:51 [Server] INFO [OKB3] Configuration file loaded.
    27.09 12:06:48 [Server] INFO [Multiverse-Core] - Attached to Permissions
    27.09 12:06:48 [Server] INFO [OKB3] You already have the latest version of OKB3.
    27.09 12:06:47 [Server] INFO [OKB3] Initiating auto-update...
    27.09 12:06:47 [Server] INFO [OKB3] Attempting to enable OKB3 v3.0.3 by Kalman Olah..
    Here's my Config:

    Code:
    general:
        mode: secure
        enable-whitelist: 'false'
        enable-nickname-syncing: 'false'
        enable-synced-banning: 'false'
        enable-promotion-track: 'false'
        enable-rank-changing: 'true'
        enable-post-count-rewarding: 'false'
        enable-anonymous-stat-tracking: 'true'
    modes:
        normal:
            user-table: user_table
            minecraft-login-name-field: minecraft_name
            rank-id-field: rank_group_field
            multitable:
                enable-multiple-tables: 'false'
                second-table: second_table
                user-id-field-in-user-table: user_id_field_user_table
                user-id-field-in-second-table: user_id_field_second_table
        secure:
            forum: phpbb
            type1:
                user-table: user_table
                username-field: username_field
                password-field: password_field
                rank-id-field: rank_group_field
            type2:
                user-table: user_table
                username-field: username_field
                password-field: password_field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://********.com/forums/passgen.php
                password-set-in-config-inc-php: ********
            type3:
                user-table: user_table
                rank-id-field: rank_group_field
                username-field: username_field
                password-field: password_field
                second-table: second_table
                user-id-field-in-user-table: user_id_field_user_table
                user-id-field-in-second-table: user_id_field_second_table
            type4:
                user-table: user_table
                username-field: username_field
                password-field: password-field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://*******.com/forums/passgen.php
                password-set-in-config-inc-php: ***********
    mysql-connection:
        mysql-host: ****************
        mysql-user: ***************
        mysql-password: ***************
        mysql-database-name: *************
    group-mapping:
        default:
            '1': ExampleGroup1
            '2': ExampleGroup2
        worlds:
            world:
                '1': Server Owner
                '2': Guest
                '3': Moderator
                '4': Guest
                '5': VIP
                '6': Guest
            world_nether:
                '1': Server Owner
                '2': Builder
                '3': Moderator
                '4': Builder
                '5': VIP
                '6': Guest
            worldsurvival:
                '1': Server Owner
                '2': Survival
                '3': Survival Moderator
                '4': Survival
                '5': Survival
                '6': Survival Guest
            worldfreebuild:
                '1': Server Owner
                '2': Free-Build
                '3': Free-Build Moderator
                '4': Free-Build
                '5': Free-Build
                '6': Free-Build Guest
    extras:
        whitelist:
            kick-message: This is the message a user will see if their group isn't whitelisted.
            use-as-blacklist: 'false'
            groups:
                '1': 'true'
                '2': 'false'
        nickname-syncing:
            nickname-field-in-usertable: nickname_field_user_table
        synced-banning:
            banned-user-forum-rank-id: '0'
            unbanned-user-forum-rank-id: '10'
            ban-message: This is the message a user will see if they are banned.
        promotion-track:
            track: 6|4|68|123|10
        rank-changing:
            identifiers:
                '1': NickNameforRank1
                '7': NickNameforAnotherRank
        post-count-rewarding:
            post-count-field-in-user-table: post-count-field-user-table
            currency-reward-per-post: '40'

    Also I use godaddy.com for my hosting and domain.
     
  10. Offline

    Kalman Olah

    You should still doublecheck your MySQL user's remote permissions. Additionally, you should fill in "type2" in your config, and change group mapping to this:
    Code:
    group-mapping:
        default:
            '1': Server Owner
            '2': Guest
            '3': Moderator
            '4': Guest
            '5': VIP
            '6': Guest
        worlds:
            world_nether:
                '1': Server Owner
                '2': Builder
                '3': Moderator
                '4': Builder
                '5': VIP
                '6': Guest
            worldsurvival:
                '1': Server Owner
                '2': Survival
                '3': Survival Moderator
                '4': Survival
                '5': Survival
                '6': Survival Guest
            worldfreebuild:
                '1': Server Owner
                '2': Free-Build
                '3': Free-Build Moderator
                '4': Free-Build
                '5': Free-Build
                '6': Free-Build Guest
     
  11. Offline

    SS94

    Hey,

    Okay I'm gonna go and try all that now and report back with an update.

    Thanks

    Hey,

    I'm just in a bit of trouble, I'm sort of new to mySQL and I'm wondering how I would exactly go about enabling remote access, i logged into my hosting and clicked on the database and clicked "manage via myPHPADMIN" then logged into that and then I'm kinda stuck on what to do next to enable remote access.

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

    Dr_Herbalist

    Please I beg you, add PermissionsBukkit support tonight. its not much extra code for you but it will make a extremely massive difference to my community.
    At the moment my permissions have all gone screwy because I had to change back to old permissions to get this to work. My players are not happy to say the least.

    I really would appreciate it if you could add it tonight, Thank you very much for the awesome plugin.
     
  13. Offline

    Kalman Olah

    I'd add support if it had a group changing API, which it doesn't have.
     
  14. Offline

    Dr_Herbalist

  15. Offline

    Gwynei

    Can you make it possible so that when people use the /sync command, the username field is not mandatory, but instead the Minecraft username is leading?

    So instead of typing /sync username password, it would be nice it would be /sync password
    The system will send the Minecraft username to the forum to do the password check.

    This way the chance of abuse will be even smaller I think..
     
  16. Offline

    fortiiiZ

    I don't understand, why that should be safer^^
     
  17. Offline

    Dr_Herbalist

    Yeah me neither, they still know your name as its your in game name?
    Haha.

    But please I beg you Kalman, Please use the above plugin to allow group changing with PB, at the moment im having to use permissions due to me using MCMA too. This has caused all other plugins to ignore player nodes so nobody has permission to do anything.
    I really don't want to stop using this plugin so thanks in advance.

    Or even SuperPerms Bridge

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

    Gwynei

    Cause nobody will be able to sync with another nickname.

    For example, John is a VIP, and Carl is not, Carl can /sync with John's username to become a certain user group. :)
     
  19. Offline

    Kalman Olah

    OR you can use normal mode, which syncs based on username without any command requirements at all.
     
  20. Offline

    Gwynei

    Wow. Didn't know that, lol.

    So that means if I turn normal mode on, the only 'check' that is been done is the username, and a user_group_id?
     
  21. Offline

    Kalman Olah

    Yup. Normal mode = rank IDs are fetched by ingame username. No /sync required.
    Secure mode = rank IDs are fetched using a username/pass combo. /sync required.

    Version 3.1.0
    • Added support for permsbukkit through the use of SetRankPB. This is an untested release. I don't like permsbukkit. That is all.


    @Dr_Herbalist

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

    CappyT

    I have problems using version 3.00+ on 1185... The plugin doesn't change rank, with /frank playername configrank... in console says everything is synced and ok, but the rank is the same on forum and on permissions.

    I use PEx and a SMF forum, with normal mode.

    Here is my config:
    Code:
    general:
        mode: normal
        enable-whitelist: 'false'
        enable-nickname-syncing: 'false'
        enable-synced-banning: 'false'
        enable-promotion-track: 'false'
        enable-rank-changing: 'true'
        enable-post-count-rewarding: 'false'
        enable-anonymous-stat-tracking: 'true'
    modes:
        normal:
            user-table: smf_members
            minecraft-login-name-field: member_name
            rank-id-field: id_group
            multitable:
                enable-multiple-tables: 'false'
                second-table: second_table
                user-id-field-in-user-table: user_id_field_user_table
                user-id-field-in-second-table: user_id_field_second_table
        secure:
            forum: smf
            type1:
                user-table: user_table
                username-field: username_field
                password-field: password_field
                rank-id-field: rank_group_field
            type2:
                user-table: user_table
                username-field: username_field
                password-field: password_field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://yoursite.com/passgen.php
                password-set-in-config-inc-php: 12345pass
            type3:
                user-table: user_table
                rank-id-field: rank_group_field
                username-field: username_field
                password-field: password_field
                second-table: second_table
                user-id-field-in-user-table: user_id_field_user_table
                user-id-field-in-second-table: user_id_field_second_table
            type4:
                user-table: user_table
                username-field: username_field
                password-field: password-field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://yoursite.com/passgen.php
                password-set-in-config-inc-php: 12345pass
    mysql-connection:
        mysql-host: localhost
        mysql-user: root
        mysql-password: *********
        mysql-database-name: simpleforum
    group-mapping:
        default:
            '1': admin
            '2': admin
            '9': eden
            '10': infernal
        worlds:
            exampleworld1:
                '1': ExampleGroup1
                '2': ExampleGroup2
    extras:
        whitelist:
            kick-message: This is the message a user will see if their group isn't whitelisted.
            use-as-blacklist: 'false'
            groups:
                '1': 'true'
                '2': 'false'
        nickname-syncing:
            nickname-field-in-usertable: nickname_field_user_table
        synced-banning:
            banned-user-forum-rank-id: '0'
            unbanned-user-forum-rank-id: '10'
            ban-message: This is the message a user will see if they are banned.
        promotion-track:
            track: 6|4|68|123|10
        rank-changing:
            identifiers:
                '1': Admin
                '0': Member
                '2': Moderator
                '9': Eden
                '10': Infernal
        post-count-rewarding:
            post-count-field-in-user-table: post-count-field-user-table
            currency-reward-per-post: '40'
    
    Seems the plugin isn't able to change the group id of the player, but the root user have this permission, and the forum works fine!
     
  23. Offline

    Kalman Olah

    Your MySQL user may not have remote UPDATE permissions. Only explanation I can give you.
     
  24. Offline

    fortiiiZ

    but I hope Carl don't know the password of John,.. I thought you have to enter /sync forumname forenpassword
    therefore it should be also safe like just entering the password :x
     
  25. Offline

    Dr_Herbalist

    Damn, I'm getting this error when using /sync or /resync:
    Code:
    2011-09-28 20:25:51 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'resync' in plugin OKB3 v3.1.0
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getGroupObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/Group;
    
    I think its a superpermsbridge problem maybe?

    Please may you use Permissions 2 API, you could do it as a separate build but then I'm sure it will work.
    Once again I really do appreciate this so much.

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

    Kalman Olah

    I fixed the issue. It should work with SetRankPB now. Should.
    Version 3.1.1
    • Fixed bug related to setting ranks with SetRankPB.
     
  27. Offline

    Dr_Herbalist

    You absolute legend. May I formally express my gratitude, Working like a dream. (well interferes with MCMA) but other than that its perfect.
    I've sent you a couple Euro as a thanks to buy you a cup of coffee.
     
  28. Offline

    Chrisspitz

    Just updated my version of OKB3 since I haven't updated in a while. Deleted and remade my config which I will list below. But okb3 is not starting properly with the newest version
    Code:
    2011-09-29 03:01:01 [INFO] [OKB3] Attempting to enable OKB3 v3.1.0 by Kalman Olah...
    2011-09-29 03:01:01 [INFO] [OKB3] Initiating auto-update...
    2011-09-29 03:01:01 [INFO] [OKB3] A new version of OKB3, v3.1.1 is available.
    2011-09-29 03:01:01 [INFO] [OKB3] You already have the latest version of OKB3 in your /plugins/OKB3/update/ folder.
    2011-09-29 03:01:01 [SEVERE] Error occurred while enabling OKB3 v3.1.0 (Is it up to date?): null
    java.lang.NullPointerException
        at me.kalmanolah.okb3.OKConfig.loadkeys(OKConfig.java:207)
        at me.kalmanolah.okb3.OKConfig.configCheck(OKConfig.java:32)
        at me.kalmanolah.okb3.OKConfig.<init>(OKConfig.java:17)
        at me.kalmanolah.okb3.OKmain.onEnable(OKmain.java:123)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:920)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:173)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:156)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:410)
        at org.bukkit.Bukkit.reload(Bukkit.java:173)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:353)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:756)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:721)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:714)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    My config is below:

    Code:
    general:
    #Will you be running Bulletin Board Bridge in 'normal' mode, or 'secure' mode?
        mode: normal
        enable-whitelist: 'true'
        enable-nickname-syncing: 'false'
        enable-synced-banning: 'true'
        enable-promotion-track: 'false'
        enable-rank-changing: 'true'
        enable-post-count-rewarding: 'true'
        enable-anonymous-stat-tracking: 'false'
    #If you opted for normal mode, fill this in
    modes:
        normal:
            user-table: mybb_users
            minecraft-login-name-field: username
            rank-id-field: usergroup
            multitable:
                enable-multiple-tables: 'false'
                second-table: second_table
                user-id-field-in-user-table: user_id_field_user_table
                user-id-field-in-second-table: user_id_field_second_table
    #If you opted for secure mode, fill this in
        secure:
    #forum type: options are phpbb, smf, vbulletin, kunena, xenforo, wbb, ipb, mybb, vanilla, #bbpress, custom
            forum: xenforo
    #fill this in if you are using smf, vbulletin, wbb, ipb, mybb
            type1:
                user-table: mybb_users
                username-field: username
                password-field: password
                rank-id-field: usergroup
    #fill this in if you are using phpbb, bbpress or vanilla
            type2:
                user-table: user_table
                username-field: username_field
                password-field: password_field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://yoursite.com/passgen.php
                password-set-in-config-inc-php: 12345pass
    #fill this in if you are using kunena or xenforo
            type3:
                user-table: xf_user
                rank-id-field: user_group_id
                username-field: username
                password-field: data
                second-table: xf_user_authenticate
                user-id-field-in-user-table: user_id
                user-id-field-in-second-table: user_id
    #fill this in if you are using a custom encryption
            type4:
                user-table: user_table
                username-field: username_field
                password-field: password-field
                rank-id-field: rank_group_field
                location-of-passgen-php: http://yoursite.com/passgen.php
                password-set-in-config-inc-php: 12345pass
    mysql-connection:
        mysql-host: asdfasdfasdfasd
        mysql-user: asdfasdfasdf
        mysql-password: noneofyourbusiness
        mysql-database-name: asdfasdfsda
    #Map your rank IDs to groups here. world-specific overwrites default. You NEED atleast 1
    #entry under worlds, even if the world doesn't exist.
    group-mapping:
        default:
            '4': Admin
            '8': TeamAqua
            '9': TeamMagma
            '6': Moderator
            '10': DiamondDonater
            '11': Contractor
            '12': Jailer
            '13': AquaMayor
            '14': MagmaMayor
            '15': DiamondDonaterMayor
            '16': GoldDonater
            '17': PlatinumDonater
            '18': InsaneDonater
            '19': TeamRubiks
            '20': InsaneDonaterMayor
            '21': PlatinumDonaterMayor
    
    extras:
        whitelist:
            kick-message: Register to Play www.RubiksCraft.com
            use-as-blacklist: 'true'
            groups:
                '4': 'true'
                '10': 'true'
                '11': 'true'
                '6': 'true'
                '8': 'true'
                '9': 'true'
                '7': 'false'
                '1': 'false'
                '13': 'true'
                '14': 'true'
                '12': 'true'
                '15': 'true'
                '16': 'true'
                '17': 'true'
                '18': 'true'
                '19': 'true'
                '20': 'true'
                '21': 'true'
        nickname-syncing:
            nickname-field-in-usertable: salt
        synced-banning:
            banned-user-forum-rank-id: '7'
            unbanned-user-forum-rank-id: '8'
            ban-message: You are banned.
        promotion-track:
            track: 2|1|0
        rank-changing:
            identifiers:
                '4': Admin
                '8': TeamAqua
                '9': TeamMagma
                '6': Moderator
                '10': DiamondDonater
                '11': Contractor
                '12': Jailer
                '13': AquaMayor
                '14': MagmaMayor
                '15': DiamondDonaterMayor
                '16': GoldDonater
                '17': PlatinumDonater
                '18': InsaneDonater
                '19': TeamRubiks
                '20': InsaneDonaterMayor
                '21': PlatinumDonaterMayor
        post-count-rewarding:
            currency-reward-per-post: '40'
            post-count-field-in-user-table: 'postnum'
     
  29. Offline

    Kalman Olah

    Why thank you. :)

    Change this:
    Code:
    group-mapping:
        default:
            '4': Admin
            '8': TeamAqua
            '9': TeamMagma
            '6': Moderator
            '10': DiamondDonater
            '11': Contractor
            '12': Jailer
            '13': AquaMayor
            '14': MagmaMayor
            '15': DiamondDonaterMayor
            '16': GoldDonater
            '17': PlatinumDonater
            '18': InsaneDonater
            '19': TeamRubiks
            '20': InsaneDonaterMayor
            '21': PlatinumDonaterMayor
    
    extras:
    to this:
    Code:
    group-mapping:
        default:
            '4': Admin
            '8': TeamAqua
            '9': TeamMagma
            '6': Moderator
            '10': DiamondDonater
            '11': Contractor
            '12': Jailer
            '13': AquaMayor
            '14': MagmaMayor
            '15': DiamondDonaterMayor
            '16': GoldDonater
            '17': PlatinumDonater
            '18': InsaneDonater
            '19': TeamRubiks
            '20': InsaneDonaterMayor
            '21': PlatinumDonaterMayor
        worlds:
            exampleworld1:
                '1': default
                '2': Admin
    
    extras:
    There needs to be atleast one entry under worlds, even if it's a dummy.

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

    Chrisspitz

    Thank's that fixed my issue, but now a new one lol.
    You know how above I have my whitelist message set... It used to work just fine, but I was just testing it (on a seperate computer)... but anyways I was trying to login with a group that wasn't whitelisted and instead of it showing the not whitelisted message my client went to a black screen and sort of froze up.

    I need to sleep now so i'll look into it more tomorrow and see if it's just the client on my desktop causing it to do that. I did connect with a group that was whitelisted and it was able to login just fine.
     
  31. Offline

    pctechjon

    I just got this set up with Drupal using the "Old School" method (as I would prefer.)

    Is there a way for the Old School way to cross check 3 tables?

    (For instance, users, another table with the custom profile fields, and then a groups/roles table)

    I don't suppose you could also have the user assigned to multiple groups?

    (In Drupal instead of groups, you have "roles" which is a "many-to-one" relationship.)
     

Share This Page