[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

    Nazerb

    Great ill be looking forward to it. After the great plugin crash of 1.8 :D
     
  3. Offline

    darkcloud784


    Woot I'm happy to hear of this! bPermissions is the permissions system I was actually looking to switch to but couldn't due to no support using OKB3 =( The bPermissions API is listed on their bukkitdev page.
     
  4. Offline

    Kalman Olah

    Version 2.5.18
    • Added support for bPermissions. Note that this is an untested release. I am going by what examples I found on the bPermissions page.
    I would humbly like to request that you add your servers to my server list, which can be found at http://cubelist.me .
    The actual list can be found on http://cubelist.me/minecraft-servers, with the guide on how to add your server on http://cubelist.me/add-your-server .
    CubeList doesn't work based on votes, so you won't actually need to pay a lot of attention to it. Thanks.

    @darkcloud784
    @Nazerb
     
  5. Offline

    Nazerb

    Well thanks for adding bPermissions, My server will be going up when:
    1. Our youtube and/or forums get a bit more popular
    2. When 1.8 comes out.
    To be honest its going to be 1 holding us back as right now we only have 3 videos and have removed someone who was going to be in our series. So we need more videos to start with. But i just like to be working on it and getting ready for when we decide to fund it and get it starting up. So i cant join your list right now sorry.
     
  6. Offline

    darkcloud784


    I just tried this and it doesnt seem to be granting me the appropriate permissions like it did with permissions 3.x.
     
  7. Offline

    Kalman Olah

    Could you post your config.yml and your bpermissions config with groups and stuff?

    I've found a bug and I'm working on fixing it now

    2.5.18 has been reuploaded. I tested this release with bPermissions myself, and it works.

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

    darkcloud784

    Thx I'll try it again when i get home and see what results I get heres a reply to your previous request:
    imported all nodes from p3 using bperm's import method
    Code:
    default: default
    players:
        GoiNBanaNazz:
        - Builder
        Lexiejayde:
        - Builder
        dulcidorem:
        - Builder
        chowder242:
        - Builder
        SirBayer:
        - Builder
        Oasteer:
        - Builder
        Pukeattak:
        - Builder
        jmgrosen:
        - Builder
        Bigbizz44:
        - Builder
        Lhivorde:
        - Admins
        schnauzer4546:
        - Builder
        ghostmancer:
        - Builder
        gizagiza20:
        - Builder
        Seadust:
        - Builder
        runxfighter2:
        - Builder
        aerospace915:
        - Builder
        MrKnightmare:
        - Builder
        Mob_Mauler:
        - Builder
        Arceus255:
        - Builder
        kiyaniv001:
        - Builder
        burnleyboy101:
        - Builder
        supercooleo:
        - Builder
        stumpkin:
        - Builder
        chasehaegele:
        - Builder
        whowantscake001:
        - Builder
        shellspeed1:
        - Builder
        Admiral666:
        - Builder
        clayton52:
        - Builder
        dina002:
        - Builder
        humandog98:
        - Builder
        adamfaw1:
        - Moderator
        Rusty420:
        - Admins
        Davidobot:
        - Builder
        Darkcloud784:
        - Admins
        funsize326:
        - Builder
        Food_Ninja:
        - Builder
        Xinthas:
        - Builder
        deketex2:
        - Builder
        Greys0:
        - Builder
        brettschoff:
        - Builder
        Doktory:
        - Builder
        Dementor_CST:
        - Builder
        jdogg69:
        - Builder
        heleniscool:
        - Builder
        DarkCloud784:
        - Admins
        huntman50:
        - Builder
        minecraftgod57:
        - Builder
        kmach:
        - Moderator
        Gutika113:
        - Admins
        Idkairplane:
        - Admins
        jesslikespie:
        - Builder
        hxchybrid:
        - Moderator
        AnnaCheerios:
        - Builder
        Parisa4:
        - Moderator
        Vaquxine:
        - Builder
        coltinkoerner10:
        - Builder
        Boston95:
        - Builder
        h0kieboy2:
        - Builder
        ownagepker:
        - Builder
    groups:
        VIP:
        - logblock.tool
        - mobarena.use.*
        - mobarena.classes.*
        - mobarena.arenas.*
        - lagmeter.*
        - SpawnControl.home.basic
        - SpawnControl.sethome.basic
        - SpawnControl.sethome.proxy
        Default:
        - towny.publicspawntp
        - commandbook.whereami.compass
        - commandbook.spawn
        - commandbook.time.check
        - commandbook.rules
        - commandbook.motd
        - commandbook.who
        - motd.*
        - modtrs.command.modlist
        - modtrs.command.modreq
        - lwc.deny
        - stargate.use
        - stargate.world.*
        - spoutessentials.joinmessage
        - spoutessentials.leavemessage
        - spoutessentials.cape
        - SpawnControl.spawn.use
        Builder:
        - -towny.publicspawntp
        - cabinet.adjchest
        - cabinet.covered
        - cabinet.abovechest
        - stargate.use
        - lwc.protect
        - commandbook.whois.*
        - commandbook.whereami
        - commandbook.whereami.compass
        - commandbook.say.*
        - commandbook.msg
        - motd.*
        - mcbans.vote.*
        - herochat.color
        - herochat.create
        - iConomy.list
        - modtrs.command.modreq
        - modtrs.command.modlist
        - showcase.basic
        - ChestShop.shop.*
        - stargate.create.gate.*
        - stargate.create.personal
        - stargate.option
        - stargate.create.network.*
        - stargate.
        - stargate.network.*
        - stargate.world.*
        - stargate.destroy.*
        - towny.top
        - jobs.join.*
        - jobs.world.*
        - towny.wild.*
        - towny.town.claim
        - towny.town.resident
        - towny.town.plot
        - towny.spawntp
        - wa.use.withdraw.items
        - wa.use.withdraw.money
        - wa.use.deposit.items
        - wa.use.deposit.money
        - towny.nation.new
        - towny.town.new
        - spoutessentials.playmusic
        - spoutessentials.stopmusic
        - spoutessentials.music
        - spoutessentials.groupskin1
        - spoutessentials.groupskin2
        - spoutessentials.groupskin3
        - spoutessentials.groupskin4
        - SpoutWallet.*
        - lagmeter.command.lag
        - inn.create
        - inn.delete
        - mailbox.user.send
        - mailbox.user.create
        - mailbox.user.remove
        Admins:
        - mobarena.setup.*
        - bb.admin.*
        - bbb.rank
        - bbb.force
        - bbb.forceall
        - bbb.*
        - commandbook.kick
        - commandbook.teleport.call
        - commandbook.weather
        - showcase.basic
        - bb.admin.rollback
        - modtrs.*
        - spyer.stopmobs.admin
        - spyer.seeAll
        - commandbook.teleport.other
        - showcase.admin
        - commandbook.broadcast
        - permissions.reload*
        - permissions.list.*
        - permissions.create
        - permissions.delete
        - permissions.has
        - permissions.perms.*
        - permissions.parents.*
        - permissions.info.*
        - permissions.demote.*
        - commandbook.mute
        - permissions.perms.remove
        - commandbook.return
        - commandbook.teleport.return
        - commandbook.time
        - commandbook.call
        - herochat.*
        - commandbook.unmute
        - permissions.promote
        - commandbook.teleport
        - mcbans.*
        - commandbook.bans
        - ChestShop.admin
        - lwc.admin
        - towny.admin
        - towny.town.new
        - iConomy.admin.*
        - towny.nation.new
        - multiverse.core.*
        - multiverse.help
        - multiverse.core.spawn.*
        - multiverse.core.coord
        - multiverse.core.tp.*
        - multiverse.core.list.*
        - multiverse.portal.*
        - multiverse.netherportals.*
        - logblock.*
        - wa.create.sign.deposit
        - wa.create.sign.withdraw
        - wa.create.sign.mailbox
        - wa.create.chest.deposit
        - wa.remove
        - spoutessentials.*
        - -spoutessentials.sunadmin
        - -spoutessentials.skyadmin
        - -spoutessentials.cloudadmin
        - -spoutessentials.moonadmin
        - lagmeter.*
        - SpawnControl.*
        - craftbukkituptodate.*
        - wa.webadmin
        - okspamsecurity.forgive
        - okspamsecurity.ignore
        - okspamsecurity.punish
        - okspamsecurity.reload
        - -commandbook.give.*
        - mailbox.postman.createother
        - mailbox.postman.removeother
        - mailbox.admin.viewlog
        - mailbox.admin.removeany
        Moderator:
        - bigbrother.admin.watch
        - bb.admin.info
        - commandbook.kick
        - commandbook.teleport.call
        - showcase.basic
        - lwc.mod
        - bb.admin.rollback
        - modtrs.*
        - spyer.spy
        - commandbook.teleport.other
        - showcase.admin
        - commandbook.broadcast
        - commandbook.mute
        - commandbook.return
        - commandbook.teleport.return
        - commandbook.call
        - herochat.*
        - commandbook.unmute
        - permissions.promote
        - commandbook.teleport
        - mcbans.*
        - commandbook.bans
        - towny.town.claim
        - towny.town.resident
        - spyer.stopmobs.admin
        - towny.wild.build
        - towny.wild.switch
        - towny.wild.item_use
        - towny.spawntp
        - mobarena.admin.*
        - multiverse.core.tp.*
        - logblock.tool
        - logblock.lookup
        - logblock.toolblock
        - logblock.me
        - wa.use.withdraw.items
        - wa.use.withdraw.money
        - wa.use.deposit.items
        - wa.use.deposit.money
        - lagmeter.*
        - craftbukkituptodate.changelog
        - spoutessentials.joinmessage
        - spoutessentials.leavemessage
        - spoutessentials.guiHELP
        - spoutessentials.title
        - spoutessentials.cape
        - spoutessentials.playmusic
        - spoutessentials.playgmusic
        - spoutessentials.stopgmusic
        - spoutessentials.music
        - okspamsecurity.forgive
        - okspamsecurity.ignore
        - okspamsecurity.punish
        - okspamsecurity.reload
        - commandbook.slap.*
        - commandbook.rocket.*
        - commandbook.shock.*
    
    bpermissions config:
    Code:
    commands:
        global-command: global
        world-command: world
        add-node: addnode
        list-node: lsnode
        add-group: addgroup
        local-command: local
        remove-node: rmnode
        list-group: lsgroup
        remove-group: rmgroup
    use-bml: false
    override-player: true
    mirrors:
        worldtomirrorto: world
    OKB3 Config:
    Code:
    mode: old-school
    mysql-connection-info:
        mysql-host: ****
        mysql-user:*****
        mysql-password: *****
        mysql-database-name: *****
    old-school-mode:
        usertable: jos_users
        minecraftname-field: minecraft
        rank-field: usertype
        enable-multiple-tables: 'true'
        multitable:
            secondtable: jos_usermeta
            useridfield-in-secondtable: user_FK
            useridfield-in-usertable: id
    normal-mode:
        forum: phpbb
        type1:
            usertable: phpbb_users
            username-field: username
            userpassword-field: user_password
            rank-field: group_id
        type2:
            usertable: phpbb_users
            username-field: username
            userpassword-field: user_password
            rank-field: group_id
            location-of-passgenphp: *****
            password-set-in-config-inc-php: *****
        type3:
            usertable: phpbb_users
            rank-field: group_id
            username-field: username
            password-field: user_password
            secondtable: jos_usermeta
            useridfield-in-usertable: user_id
            useridfield-in-secondtable: user_FK
        type4:
            usertable: php_users
            username-field: username
            password-field: mine_user
            rank-field: group_id
            location-of-passgenphp: *****
            password-set-in-config-inc-php: *****
    world-groups:
        enable-multiworld-groups: 'false'
        default:
            groups:
                'Registered': Builder
                'Author': VIP
                'Editor': Moderator
                'Publisher': Moderator
                'Manager': Moderator
                'Administrator': Moderator
                'Super Administrator': Admins
    whitelist:
        enable-whitelist: 'false'
        global:
            use-as-blacklist: 'false'
            kick-message: This is the message a user will see if their group isn't whitelisted.
            groups:
                '1': 'true'
                '2': 'false'
    nickname-sync:
        enable-nickname-syncing: 'true'
        nickname-field-in-usertable: 'name'
    forum-banning:
        is-server-ban-too: 'true'
        banned-forum-user-rank-id: '0'
        unbanned-forum-user-rank-id: '10'
        ban-message: Your banned from the forums, what makes you think we wouldn't do the same on the server?
    promotion-tracks:
        'Registered': Builder
        'Author': VIP
        'Editor': Moderator
        'Publisher': Moderator
        'Manager': Moderator
        'Administrator': Moderator
        'Super Administrator': Admins
    forum-ranks: ''
    forum-ranks:
        Admins: '5'
        Registered: '2'
        Moderator: '4'
    misc:
        mysql-ping-interval: 20
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 15, 2016
  9. Offline

    Kalman Olah

    This is completely wrong:
    Code:
    world-groups:
        enable-multiworld-groups: 'false'
        default:
            groups:
                'Registered': Builder
                'Author': VIP
                'Editor': Moderator
                'Publisher': Moderator
                'Manager': Moderator
                'Administrator': Moderator
                'Super Administrator': Admins
    It's supposed to be 'ID': bPermissions Group Name
    e.g.:
    Code:
    world-groups:
        enable-multiworld-groups: 'false'
        default:
            groups:
                '3': Builder
    Where the ID is the actual ID of your rank, which can be found in your "rank-field".
     
  10. Offline

    darkcloud784

    I'm actually using a joomla server and authenticating everthing via a forum bridge. So I use the joomla rank fields which get stored as such:
    Code:
                'Registered'
                'Author'
                'Editor'
                'Publisher'
                'Manager'
                'Administrator'
                'Super Administrator'
    They are not stored as numbered ranks, it works perfectly with permissions 3.x
     
  11. Offline

    Kalman Olah

    Right. Good to know. I figured they were stored as IDs, sorry :).
     
  12. Offline

    darkcloud784

    Np, I'm using a not so typical way of changing permissions upon registration.
     
  13. Offline

    JoeRay

    Will there be support or a fix for permissionsbukkit?

    When my server is started with this plugin I get:
    Code:
    OKB3: Attempting to enable OKB3 v2.5.18 by Kalman Olah...
    OKB3: Initiating auto-update...
    OKB3: You already have the latest version of OKB3.
    SuperpermBridge: Superperm/Permissions bridge enabled
    OKB3: Successfully hooked into Permissions plugin.
    OKB3: Attempting to load configuration file...
    OKB3: Configuration file successfully loaded.
    OKB3: [DB] Initializing MySQL connection...
    OKB3: [DB] MySQL connection successful.
    OKB3: [DB] Loading database...
    OKB3: OKB3 v2.5.18 enabled successfully.
    
    I tried using the plugin with PermissionsBukkit + SuperpermsBridge v1.2 and when I login i get:
    Code:
    2011-09-09 04:01:16 [SEVERE] Exception in thread "Thread-12"
    2011-09-09 04:01:16 [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/User;
    2011-09-09 04:01:16 [SEVERE]     at me.kalmanolah.okb3.OKmain.CheckPermission(OKmain.java:287)
    2011-09-09 04:01:16 [SEVERE]     at me.kalmanolah.okb3.OKRunnable.run(OKRunnable.java:156)
    2011-09-09 04:01:16 [SEVERE]     at java.lang.Thread.run(Thread.java:636)
    also when running the sync command:
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'sync' in plugin OKB3 v2.5.18
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getGroupObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissions/Group;
        at me.kalmanolah.okb3.OKmain.changeGroup(OKmain.java:224)
        at me.kalmanolah.okb3.OKmain.UpdateNormal(OKmain.java:396)
        at me.kalmanolah.okb3.OKCmd.onCommand(OKCmd.java:99)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    btw im using xenforo and normal mode. I would also use bpermissions, but because I use McMyAdmin it has no feature for exporting permissions to it :(
     
  14. Offline

    Kalman Olah

    I didn't add support for SuperPermBridge, I added support for bPermissions.

    @JoeRay I just checked the permsBukkit thread and it doesn't look like he's added a group changing API yet, so I can't add support right now.

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

    JoeRay

    Ahh I see.. Thanks for checking out the situation though :)

    Hopefully he adds it soon or McMyAdmin supports bPermissions.. This plugin does exactly what I need.
     
  16. Offline

    jco281

    I can not find the php files only the jar
     
  17. Offline

    Kalman Olah

    Fixed, try redownloading.
     
  18. Offline

    jco281

    thank you :)
     
  19. Offline

    jasvecht

    Does this support additional forum + permission groups? As in, if a member has the A permission in main forum group, B in a second, they get A + B groups both in Minecraft?
     
  20. Offline

    cyberjacob

    small question (as a web dev)
    what do the PHP scripts do?
     
  21. Offline

    ExplosiveBacoN

    Hi, its me again and I have a question. Would it be possible for me to not include a group, so that the group may join the server without having to register on our forums?
     
  22. Offline

    Kalman Olah

    If they're not registered on your forums, the only way to let them join is to set "use-as-blacklist" to true in the whitelist.
     
  23. Offline

    jco281

    [WARNING] [OKB3] 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,user WHERE xf_user.username = 'Rext' AND xf_user.user_id = xf_user_authent' at line 1
    2011-09-1

    Anyone have any ideas
     
  24. Offline

    dragos240

    Using myBB 1.6, craftbukkit ver 1064 and permissionsEx (v1.13).

    I set the config up correctly (I think) and I get this:

    Show Spoiler
    Code:
    >bbb
    05:52:35 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'bbb'
     in plugin OKB3 v2.5.18
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:12
    9)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    44)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:488)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:467)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at ru.tehkode.permissions.PermissionManager.has(PermissionManager.java:6
    7)
            at me.kalmanolah.okb3.OKmain.CheckPermission(OKmain.java:296)
            at me.kalmanolah.okb3.OKCmd.onCommand(OKCmd.java:40)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more
    


    Not sure what the issue is... I will also post the config for OKB3:
    Show Spoiler
    Code:
    mode: normal
    mysql-connection-info:
        mysql-host: NotMyHost.com
        mysql-user: NotMyUsername
        mysql-password: NotMyPass
        mysql-database-name: NotMyDatabase
    old-school-mode:
        usertable: user_table
        minecraftname-field: mine_user
        rank-field: rank_field
        enable-multiple-tables: 'false'
        multitable:
            secondtable: mine_table
            useridfield-in-secondtable: user_id_field
            useridfield-in-usertable: user_id_field
    normal-mode:
        forum: mybb
        type1:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
        type2:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
            location-of-passgenphp: http://yoursite.com/passgen.php
            password-set-in-config-inc-php: 12345pass
        type3:
            usertable: user_table
            rank-field: rank_field
            username-field: username_field
            password-field: pass_field
            secondtable: second_table
            useridfield-in-usertable: user_id_field
            useridfield-in-secondtable: user_id_field
        type4:
            usertable: user_table
            username-field: username
            password-field: mine_user
            rank-field: rank_field
            location-of-passgenphp: http://yoursite.com/passgen.php
            password-set-in-config-inc-php: 12345pass
    world-groups:
        enable-multiworld-groups: 'false'
        default:
            groups:
                '1': default
                '2': Citizen
                '8': Donor
                '4': Manager
                '6': Moderator
                '9': Admin
        exampleworld1:
            groups:
                '1': ExampleGroup1
                '2': ExampleGroup2
        exampleworld2:
            groups:
                '1': ExampleGroup1
                '2': ExampleGroup2
    whitelist:
        enable-whitelist: 'false'
        global:
            use-as-blacklist: 'false'
            kick-message: This is the message a user will see if their group isn't whitelisted.
            groups:
                '1': 'true'
                '2': 'false'
    nickname-sync:
        enable-nickname-syncing: 'false'
        nickname-field-in-usertable: ''
    forum-banning:
        is-server-ban-too: 'true'
        banned-forum-user-rank-id: '0'
        unbanned-forum-user-rank-id: '10'
        ban-message: This is the message a player will see if they get banned.
    promotion-tracks:
        '1': '3'
        '2': '5'
        '3': '16'
    forum-ranks:
        Admin: '1'
        Registered: '0'
        Moderator: '2'
    misc:
        mysql-ping-interval: '30'
    


    I see nothing wrong with my database, or plugins. And the OP says that it works with PermissionsEx. Anyway, I'd love a reply. Who knows, I may have done something wrong.

    Thanks,
    Dragos240
     
  25. Offline

    Kalman Olah

    Code:
        forum: mybb
        type1:
            usertable: user_table
            username-field: username_field
            userpassword-field: user_pass_field
            rank-field: rank_field
    change that to
    Code:
        forum: mybb
        type1:
            usertable: mybb_users
            username-field: username
            userpassword-field: password
            rank-field: usergroup
     
  26. Offline

    jco281

    [WARNING] [OKB3] 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,user WHERE xf_user.username = 'Rext' AND xf_user.user_id = xf_user_authent' at line 1
    2011-09-1

    Anyone have any ideas

    normal-mode:
    forum: xenforo
    Code:
    normal-mode:
        forum: xenforo
    
        type3:
            usertable: user
            rank-field: group
            username-field: username
            password-field: password
            secondtable: group
            useridfield-in-usertable: user_id
            useridfield-in-secondtable: secondary_group_ids
     
  27. Offline

    Kalman Olah

    Second table is for passwords.
    Code:
        type3:
            usertable: xf_user
            rank-field: user_group_id
            username-field: username
            password-field: data
            secondtable: xf_user_authenticate
            useridfield-in-usertable: user_id
            useridfield-in-secondtable: user_id
    The php scripts used to generate the hashes based on the passwords you put in using /sync. I've switched over to a full java solution for most passwords, but some forums rely on the PHPPASS framework for hashing, so I still include the php files.

    EDIT:
    I'll explain this a bit further.
    Lets say you did "/sync myuser mypass". Right. So the plugin would visit the webpage "http://mysite.com/passgen.php?t=%FORUMTYPE%&p=%yourpassgenpass%&u=myuser&p=mypass".
    The script itself would generate a hash for your forum type, based on your password. The passgenpass is needed so only your server has access to the script. The username is also provided because in some cases the hash is generated based on a salt value AND the password, which require you to execute mysql queries to grab the salt value.

    I realized that doing this was a pretty slow method, so I switched to full java hashing for most forum types. Some forum types rely on the PHPPASS framework to generate their hashes, so I needed to keep the passgen.php file.

    There, explained it.

    No, OKB3 only supports one group at a time. You can work around this by making new groups that inherit from multiple groups, and mapping those to the forum ranks.

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

    skater40165

    Would love to see a temp ban option
     
  29. Offline

    dragos240

    Thanks for the feedback! I have changed type1 accordingly. It is now:
    Code:
    normal-mode:
        forum: mybb
        type1:
            usertable: mybb_users
            username-field: username
            userpassword-field: password
            rank-field: usergroup
    
    However, I now get this:
    Show Spoiler

    Code:
    15:05:34 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'bbb' in plugin OKB3 v2.5.18
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:344)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:488)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:467)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
            at ru.tehkode.permissions.PermissionManager.has(PermissionManager.java:67)
            at me.kalmanolah.okb3.OKmain.CheckPermission(OKmain.java:296)
            at me.kalmanolah.okb3.OKCmd.onCommand(OKCmd.java:40)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more
    


    I think I did something wrong. Did I need to set something in MyBB?

    Thanks again,
    Dragos
     
  30. Offline

    Kalman Olah

    The /bbb command doesn't work through console. Use it ingame.
     
  31. Offline

    jasvecht

    Yeah, that'd become unmanagable for me. Stick with Warrant forever it is :p
     

Share This Page