[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

    Raveinacave

    I tried it with all my plugins and the server on 1337 and still no luck still i get this OB3K error
    Code:
    2011-10-23 21:06:48 [SEVERE] Error occurred while enabling OKB3 v3.1.6 (Is it up to date?): null
    java.lang.NullPointerException
        at me.kalmanolah.okb3.OKConfig.readStringList(OKConfig.java:66)
        at me.kalmanolah.okb3.OKConfig.loadkeys(OKConfig.java:219)
        at me.kalmanolah.okb3.OKConfig.configCheck(OKConfig.java:33)
        at me.kalmanolah.okb3.OKConfig.<init>(OKConfig.java:18)
        at me.kalmanolah.okb3.OKmain.onEnable(OKmain.java:123)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:957)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:413)
        at org.bukkit.Bukkit.reload(Bukkit.java:182)
        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:355)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
        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:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    and when i type any cmd for OK3B it just replies Usage: /(cmd used) and it doesnt update my rank i dont no whats wrong anymore unless its the config.yml
     
  3. Offline

    Kalman Olah

    Change
    Code:
        worlds:
            freebuild1:
            '1': Owner
            '3': Mod
            '2': Admin
    to
    Code:
        worlds:
            freebuild1:
                '1': Owner
                '3': Mod
                '2': Admin
     
  4. Offline

    Freakling

    I have a request. If possible can you connect this with spout and the first time you log on you get a screen where you enter the credentials to the forum, like doing a /sync <username> <password> command.

    This would ofc only work with the SpoutCraft client but i think it would make an awesome addition.

    Thanks for hearing me out!

    Edit: I'm making a dev-bukkit ticket too.
     
  5. Offline

    Kalman Olah

    Don't, because I won't add it.
     
  6. Offline

    CDJ445544

    I REALLY want this! BUT, ur link to the page on how to fill config is giving me 403! :(
     
  7. Offline

    Kalman Olah

    Fixed.
     
  8. Offline

    CDJ445544

    thankyou dude! you rule
     
  9. Offline

    asm0deus

    I don't really see how.. but do you think this can be incorporated with ENJIN?
     
  10. Offline

    Kalman Olah

    Version 3.2.0
    Most, if not all commands can now be used from the console.
     
  11. Offline

    Raveinacave

    I did as you say and now the commands work to the extent that i can view the help menu but when i try and /sync it says internal seerver error and i get this error in the log
    Code:
    2011-10-25 16:45:01 [SEVERE] [OKB3] SQLException! Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-10-25 16:45:34 [SEVERE] [OKB3] SQLException! Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-10-25 16:46:02 [SEVERE] [OKB3] SQLException! Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    Does this mean theres a problem with the mysql server/forum connection ?? If so what could cause this because i know i have filled out the info correctly...
     
  12. Offline

    Kalman Olah

    The plugin cannot connect to your MySQL server. Make sure your MySQL user has remote SELECT and UPDATE permissions from all hosts.
     
  13. Offline

    Raveinacave

    These features are enabled for all hosts on the user i am using, are there any other causes for the previous errors
     
  14. Offline

    Kalman Olah

    No. The plugin can't connect to your MySQL server. This could be because the server has a firewall, your config info is incorrect, or because the MySQL user doesn't have permission to remotely connect. Keep in mind that you have to manually add your server IP to the MySQL user remote whitelist on most hosts.

    Version 3.2.2
    I've simplified the permissions check. I used to be pretty bad from the looks of this old code.
    Version 3.2.1
    Nickname sync fix, provided by @jchamb2010 . Thanks!

    I've got a few finished plugins sitting in my folder here.
    I'll consider uploading one in the future, based on demand.
    There's one that adds group/world-based MotDs, MMO-style wolves with skills, and a permissions(group)-based login queue/tier system.
    Let me know.

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

    Raveinacave

    Please upload the wolf skill thing that would be awesome :D im still having problem because we disabled all whitelists but still it cant connect and i get a different error saying this
    Code:
    2011-10-24 20:28:44 [INFO] [OKB3] [DB] Initializing MySQL connection...
    2011-10-24 20:28:45 [SEVERE] [OKB3] SQLException! Access denied for user 'irongam1_smf183'@'host-78-150-88-101.as13285.net' (using password: YES)
    2011-10-24 20:28:45 [INFO] [OKB3] [DB] MySQL connection failed!
    So now i have no idea .... is this still whitelist related? or connection?
     
  16. Offline

    Kalman Olah

    The Mysql user irongam1_smf183 does not have permission to remotely connect to your MySQL server. Simple.
     
  17. Offline

    Raveinacave

    oh ok thanks :)
    I hadnt realised< how thick i feel right now ...... :L
     
  18. Offline

    SS94

    I really need help after finally setting It up last night I get this when I type /fsyncall http://screensnapr.com/v/W51txf.png

    and also I don't think It even updates the ranks when people join the server :/
     
  19. Offline

    Kalman Olah

    Post your config.
     
  20. Offline

    SS94

    here:
    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: 'true'
      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: xenforo
        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: *****.db.*******.********.com
      mysql-user: *******
      mysql-password: *********
      mysql-database-name: *******
    group-mapping:
      default:
        '1': ExampleGroup1
        '2': ExampleGroup2
      worlds:
        world:
          '1': Guest
          '2': Guest
          '5': VIP
          '6': VIP+
          '7': Premium
        world_nether:
          '1': Guest
          '2': Guest
          '5': VIP
          '6': VIP+
          '7': Premium
        worldsurvival:
          '1': Survival Guest
          '2': Survival
          '5': VIP
          '6': VIP+
          '7': Premium
        worldfreebuild:
          '1': Free-Build Guest
          '2': Free-Build
          '5': VIP
          '6': VIP+
          '7': Premium
    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: '2'
    
     
  21. Offline

    Kalman Olah

    Version 3.2.3
    • Fixed a missing space in the console message "Gave <name> <amount> coins for <xx> posts.".

    The reason it doesn't work is because you didn't configure your table names/fields at all. And no, I will not give you the specific names for each and every one. Check the example config linked in the OP.

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

    SS94

    Okay I changed the tables, but It doesn't check when they log in If they registered or not instead you have to type /sync username password

    but when u do this comes up in console:

    http://screensnapr.com/v/lXAAMZ.png

    It gives them the permissions but it doesn't give all of them. Like they should have a colored name like other users
     
  23. Offline

    Kalman Olah

    Group names in group-mapping are case sensitive. If you want the plugin to run without having to use /sync <name> <pass> once, use normal mode, not secure mode.
     
  24. Offline

    Matt G

    I am getting the following errors. The first error, It happens, and I cannot tell what command starts it or...

    The second, happens from /sync

    =-=-=-=-=-=-=-=-=-=
    21:21:54 [WARNING] [OKB3] Error at SQL Query: No operations allowed after connection closed.Connection was implicitly closed by the driver.
    21:21:54 [SEVERE] Exception in thread "Thread-892"
    21:21:54 [SEVERE] java.lang.NullPointerException
    21:21:54 [SEVERE] at me.kalmanolah.okb3.OKFunctions.getRankNormal(OKFunctions.java:194)
    21:21:54 [SEVERE] at me.kalmanolah.okb3.OKRunnable.run(OKRunnable.java:139)
    21:21:54 [SEVERE] at java.lang.Thread.run(Thread.java:636)


    and

    I get this error whenever i type /sync

    [WARNING] [OKB3] Error at SQL Query: No operations allowed after connection closed.Connection was implicitly closed by the driver.
    21:22:47 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'sync' in plugin OKB3 v3.0.3
    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 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)
    Caused by: java.lang.NullPointerException
    at me.kalmanolah.okb3.OKFunctions.getRankNormal(OKFunctions.java:194)
    at me.kalmanolah.okb3.OKFunctions.updateNormal(OKFunctions.java:238)
    at me.kalmanolah.okb3.OKCmd.onCommand(OKCmd.java:114)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    ... 13 more



    Thank you so much :)

    its weird. Sync works as soon as the server starts, but then stops working.
     
  25. Offline

    Kalman Olah

    The MySQL connection was closed. Simple.
     
  26. Offline

    Matt G

    Okay, so this was an issue with the mysql side then, i'm guessing.
     
  27. Offline

    SS94

    I'm aware they're case sensitive. But when I run in normal mode what tables do I change? The same ones? And will this sync everytime someone joins?
     
  28. Offline

    Raveinacave

    Ive got it all connected to the sql server and it all works fine till i try and use /sync, /fsync, etc.(anything to do with syncing) the server then sends me a reply saying this. (attached image) 2011-10-25_14.36.27.png
    What could cause this??
     
  29. Offline

    Kalman Olah

    In normal mode you change the tables below the "normal" block in the config. This will look for someone's minecraft username as their forum username, instead of having to use /sync <user> <pass>.

    What's causing this is the fact that my plugin cannot fetch your encrypted password from the database because your MySQL user can't connect/does not have rights to SELECT data remotely.

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

    DragonSupremacy

    Getting NPE upon startup, once I've configured the plugin for my particular setup.

    config.yml

    server.log

    Edit: CB #1337, PEX 1.15, OKB 3.2.3

    Edit 2: posted correct server.log

    Edit 3: judging by the NPE, I think I made an error in the config, but what?
     
  31. Offline

    Kalman Olah

    This part:
    Code:
      worlds:
        LavaCraft:
        '1': Guest
        '2': Guest
        '3': Member
        '4': God
        '5': Guest
        '6': Expert
        '7': Guest
        '8': Member
        '9': Expert
        '10': Mod
        '11': Mod
        '12': SMod
    Note how the indenting is incorrect. Each section should have 4 more spaces than its parent section.
     

Share This Page