[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

    Nope to all of that.
    This is an issue. Not with OKB3 though. It happens when you use some plugins that do something threaded on login. I've seen it before, and can't fix it without fucking over OKB3.
     
  3. Offline

    Ablac

    Needs ability to Get Secondary Groups cause my VIP rank is automatically granted to the Secondary Group not the Primary.
     
  4. Offline

    thedjtrollin

    soz. but im really confused I MEAN IT could someone do a tutorial on how to do this

    im on phpbb :)

    lolcraft.comze.com <----- the forum [diamond]
     
  5. Offline

    Kalman Olah

    Nah.
     
  6. Offline

    Gwynei

    To achieve this, maybe you can create a SQL view who does the check for you. Then, connect OKB3 to that view instead of the fysical table. :)
     
  7. Offline

    Vl4dmir

    Okay, I don't want to come off as a noob here, I'm fairly experienced with plugin management, database config, webhosting, etc etc, but I can't figure out how to set this up. I'm setting it up for Kunena, running it as a plugin for my Joomla website. The way Joomla and Kunena are set up is with 2 different tables, the Usernames/Passwords are saved in Joomla's user table (psy_users), and Forum related info is in the psy_kunena_users table. How should I set up the config.yml to reflect this? This is what I have so far:

    Code:
            type3:
                user-table: psy_kunena_users
                rank-id-field: rank
                username-field: username_field <-- in psy_users
                password-field: password_field  <-- also in psy_users
                second-table: second_table  <-- should psy_users be here? Or in "user-table:"
                user-id-field-in-user-table: userid
                user-id-field-in-second-table: user_id_field_second_table
     
  8. Offline

    Kalman Olah

    psy_users would be user-table, as the usernames/passwords are stored there
     
  9. Offline

    thernztrom

    @Kalman Olah

    I added 3.1.1 but it says 3.1.0 in-game and in McMyAdmin, which makes it download the 3.1.1 bundle everytime to the /update/ dirr.
    Just I that got that problem?
     
  10. Offline

    Vl4dmir

    What about the rank-id? Will OKB3 know to pull the rank from psy_kunena_users if I put it as the second table?
     
  11. Offline

    Kalman Olah

    I sure hope so :).
    Reuploaded :).
     
  12. Offline

    Vl4dmir

    Alright, I got OKB3 to connect to the database, and I'm assuming it's reading everything, but I got this when I tried to sync

    Code:
    14:51:43 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'sync' in plugin OKB3 v3.1.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
            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 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)
    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:182)
            at me.kalmanolah.okb3.OKFunctions.updateSecure(OKFunctions.java:215)
            at me.kalmanolah.okb3.OKCmd.onCommand(OKCmd.java:108)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
            ... 12 more
    >
    
    And...
    Code:
    An internal error occurred while trying to perform this command
     
  13. Offline

    cyberjacob

    hey Kalman, epic plugin.
    small suggestion/request: setting the players title/prefix & sufix based on forum settings?
    this could be done using player.setName() and player.setDisplayName()
     
  14. Offline

    thernztrom

    Could you explain these bits for me:
    promotion-track:
    and
    rank-changing:
    identifiers:
    If my group mapping is like this:
    Code:
    group-mapping:
        default:
            '1': Owner
            '4': Default
            '11': Smod
            '12': Donator
            '13': Member
            '14': Member
            '15': Admin
            '16': VIP
            '18': Default
            '26': Mod
            '27': PDonator
    Would it then be correct to have it setup like this:
    Code:
        promotion-track:
            track: 18|13|16|12|27
        rank-changing:
            identifiers:
                '12': Donator
                '16': VIP
                '13': Member
                '18': Default
                '27': PDonator
    I would like so that I can promote/demote between Default--Member--VIP--Donator--PDonator
     
  15. Offline

    cyberjacob

    that all looks OK(B3?) for what you want to do :)
     
  16. Offline

    thernztrom

    @cyberjacob
    Thanks!
    Also, as permission nodes I'd have bbb.promote.18 bbb.promote.13 bbb.promote.16 bbb.promote.12 bbb.promote.27
    And the equal to the demote ones. Or does it haev to be every number between 12-27?
     
  17. Offline

    cyberjacob

    @thernztron
    I belive they would be bbb.promote.Donator as defined in the rank-changing identifiers section of the config
     
  18. Offline

    Kalman Olah

    Yup. The identifiers are mainly there for when you use /frank <name> <rankname>

    @thernstrom
    The nodes are bbb.promote.<newrankID>, meaning bbb.promote.12, bbb.promote.16, etc.
    Download 3.1.2, I found a bug :).

    Version 3.1.2
    • Fixed bug with promotion/demotion permissions nodes.

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

    Vl4dmir

    Can you help me out with the problem posted above?
     
  20. Offline

    Kalman Olah

    OKB3 is only compatible with PEX, Permissions 3.x.x, GroupManager, bPermissions, superPerms with SetRankPB.
    What permissions plugin/version are you using?
     
  21. Offline

    Vl4dmir

    PermissionsBukkit, newest build. With the bridge
     
  22. Offline

    Kalman Olah

    You need to be running SetRankPB, or OKB3 won't work with superPerms.
     
  23. Offline

    Vl4dmir

    I knew I was forgetting something. That seems to have fixed it. My account sync'd, and seems to be working with the ranks. All the commands I have set for the ranks work, but it seems that I am completely unable to build now. My "default" group has "permissions.build: false" but all the others are inherited from my "newbie" rank which has "permissions.build: true". I don't have the "default" group set on OKB3, or the forum because my goal was to give people build permission when they register, by setting them as the "newbie" group. Could this be causing my problem?
     
  24. Offline

    pctechjon

    You sir, are a genius.
     
    Gwynei likes this.
  25. Offline

    Kalman Olah

    If you configured it like that, it SHOULD be working. I'm not an expert on bukkitperms.
     
  26. Offline

    Vl4dmir

    Alright, thanks. I'll go post my problem in the BukkitPerms thread. Thanks for the awesome plugin btw!

    EDIT: I figured it out. It wasn't OKB3 or BukkitPerms, it was EssentialsProtect, so I deleted it
     
  27. Offline

    pctechjon

    Having an issue with the plugin. I now have it set to 'secure' mode

    I get this error:

    Code:
    2011-09-30 21:03:52 [SEVERE] Error occurred while enabling OKB3 v3.1.2 (Is it up to date?): null
    java.lang.NullPointerException
        at me.kalmanolah.okb3.OKConfig.loadkeys(OKConfig.java:158)
        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 be.Balor.Manager.Commands.Server.Reload.execute(Reload.java:57)
        at be.Balor.Manager.Commands.ACCommandContainer.execute(ACCommandContainer.java:43)
        at be.Balor.Manager.CommandManager$ExecutorThread.run(CommandManager.java:440)
    Here is my config:

    Code:
    general:
        mode: secure
        enable-whitelist: 'false'
        enable-nickname-syncing: 'false'
        enable-synced-banning: 'false'
        enable-promotion-track: 'false'
        enable-rank-changing: 'false'
        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: type4
            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: minecraft_ranks
                username-field: username
                password-field: password
                rank-id-field: rank
                location-of-passgen-php: OMITTED
                password-set-in-config-inc-php: OMITTED
    mysql-connection:
        mysql-host: OMITTED
        mysql-user: minecraft_drupal
        mysql-password: OMITTED
        mysql-database-name: purekill_drupal
    group-mapping:
        default:
            '10': Member
            '9' : VIP
            '8' : Mod
            '7' : Admin
        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': NickNameforRank1
                '7': NickNameforAnotherRank
        post-count-rewarding:
            post-count-field-in-user-table: post-count-field-user-table
            currency-reward-per-post: '40'
    
    (I omitted some of the identifiable info but it exists in its correct form in the actual config file.)
    I have verified the yml file has spaces instead of tabs, and the credentials I'm using to connect to the mysql database work when using the old school mode. Is there something I'm doing wrong?

    Thanks

    Edit: If I can get this working, I'll buy you a beer... or if you're not old enough... a root beer.
     
  28. Offline

    Kalman Olah

    turn this:
    Code:
    forum: type4
    into this:
    Code:
    forum: custom
     
  29. Offline

    pctechjon

    That did the trick! Will definitely make use of the PayPal link sometime soon :)
     
  30. Offline

    Kalman Olah

    Thanks man, glad to have been of service :).
     
  31. Offline

    Zaros_

    I need some help with your Plugin!
    Our forum is running with WoltLab Burning Board 3.
    Does your plugin support this? and how do i have to edit the config file??
     

Share This Page