[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

    What exactly happens, though? Post a full server log(of someone actually trying to /sync or something) and try to explain. Your config.yml looks OK.

    To the person downloading my plugin for the fifth time in ten minutes: cut it out, or I'll have to IP ban you from downloading.

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

    h0us3cat

    Code:
    2011-07-10 16:54:25 [INFO] Done (0,283s)! For help, type "help" or "?"
    2011-07-10 16:54:31 [INFO] canhazcookie [/<ip>:57402] logged in with entity id 138 at ([world] 62.66859414942158, 64.0, -133.91494021984857)
    2011-07-10 16:54:47 [INFO] [OKB3] canhazcookie's ranks successfully updated.
    When i do /sync <username> <password>

    but they are still in the default group.
     
  4. Offline

    Kalman Olah

    Check the MYSQL table xf_user for canhazcookie's entry. Check his user_group_id. If it's not 5 or 3, it's not listed on the config.yml(by you), and his rank won't be changed.
     
  5. Offline

    h0us3cat

    xf_user.png
     
  6. Offline

    Kalman Olah

    Checking it out right now.

    My setup:
    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
    My results:
    [​IMG]
    My thoughts:
    -Maybe you're looking at the users.yml. The users.yml is only really saved when the server restarts, but rank changes are instant. So though the changes do not instantly show in users.yml, they ARE there.
    -Does your main world have its own permissions groups.yml containing the "Admin" and "Builder" ranks? OKB3 can't change to what's not there...

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

    h0us3cat

    Its like "/plugins/Permissions/world/users.yml"
    So i have to use the "globalUsers.yml" in " /plugins/Permissions" ?
     
  8. Offline

    Kalman Olah

    Ranks are changed in plugins/Permissions/world/users.yml if you have a plugins/Permissions/world/groups.yml with the Admin/Builder groups in it.
    The users.yml will not reflect the changes instantly, though.
    I'd suggest making sure you have a groups.yml in your plugins/Permissions/world folder with the Admin&Builder ranks.

    EDIT: No, you don't have to use the globalUsers.yml.
     
  9. Offline

    h0us3cat

    "plugins/Permissions/world/groups.yml"
    Code:
    groups:
        Default:
            default: true
            info:
                prefix: 'default'
                suffix: ''
                build: false
            permissions:
                - 'foo.bar'
        Builders:
            default: false
            info:
                prefix: 'builder'
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'commandbook.spawn'
        Moderator:
            default: false
            info:
                prefix: 'mod'
                suffix: ''
                build: true
            inheritance:
                - Builders
            permissions:
                - 'foo.*'
                - '-foo.test'
        Admins:
            default: false
            info:
                prefix: 'admin'
                suffix: ''
                build: true
            permissions:
                - '*'
    "plugins/Permissions/world/users.yml"
    Code:
    users:
        h0us3cat:
            groups:
            - Admins
            permissions:
            - '*'
        canhazcookie:
            permissions:
            groups:
            - Default
    
    How long will it take to change it in users.yml?
    Because i always closed the server after testing.
     
  10. Offline

    Kalman Olah

    Is the sync not working for anyone? Or is it just broken for canhazcookie?
    EDIT: Try deleting canhazcookie from users.yml and trying again after a restart.
     
  11. Offline

    h0us3cat

    This is just a test server h0us3cat and canhazcookie are both my accounts.
    I already tried with deleting canhazcookie.
     
  12. Offline

    Kalman Olah

    Can you show me your current config.yml again, and another full server log from the startup until you try to sync? You don't need to put it on pastebin, just paste it here.
     
  13. Offline

    h0us3cat

    Code:
    mode: normal
    mysql-connection-info:
        mysql-host: localhost
        mysql-user: xenforo
        mysql-password: mypassword
        mysql-database-name: xenforo
    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: xenforo
        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: [URL]http://yoursite.com/passgen.php[/URL]
            password-set-in-config-inc-php: 12345pass
        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
        type4:
            usertable: user_table
            username-field: username
            password-field: mine_user
            rank-field: rank_field
            location-of-passgenphp: [URL]http://yoursite.com/passgen.php[/URL]
            password-set-in-config-inc-php: 12345pass
    world-groups:
        enable-multiworld-groups: 'false'
        world:
            default:
                '3': Admins
                '5': Builders
        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:
        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.
    
    Code:
    2011-07-10 18:15:26 [INFO] Starting minecraft server version Beta 1.7.2
    2011-07-10 18:15:26 [WARNING] **** NOT ENOUGH RAM!
    2011-07-10 18:15:26 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    2011-07-10 18:15:26 [INFO] Loading properties
    2011-07-10 18:15:26 [INFO] Starting Minecraft server on 178.63.103.173:25565
    2011-07-10 18:15:26 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-904-g9277096-b953jnks (MC: 1.7.2)
    2011-07-10 18:15:27 [INFO] LWC: Loading shared objects
    2011-07-10 18:15:27 [INFO] LWC: Protection cache: 0/10000
    2011-07-10 18:15:27 [INFO] LWC: Native library: plugins/LWC/lib/native/Windows/amd64/sqlitejdbc.dll
    2011-07-10 18:15:27 [INFO] [Permissions] (Yeti) was initialized.
    2011-07-10 18:15:27 [INFO] [Permissions] version [3.1.6] (Yeti)  loaded
    2011-07-10 18:15:27 [INFO] Preparing level "world"
    2011-07-10 18:15:27 [INFO] Preparing start region for level 0 (Seed: -4363887323884502217)
    2011-07-10 18:15:28 [INFO] Preparing start region for level 1 (Seed: 8231364308611532734)
    2011-07-10 18:15:28 [INFO] Preparing spawn area: 20%
    2011-07-10 18:15:28 [INFO] CommandBook 1.5.2-SNAPSHOT enabled.
    2011-07-10 18:15:28 [INFO] CommandBook: Maximum wrapper compatibility is enabled. Some features have been disabled to be compatible with poorly written server wrappers.
    2011-07-10 18:15:28 [INFO] CommandBook: 10 banned name(s) loaded.
    2011-07-10 18:15:28 [INFO] CommandBook: 0 kit(s) loaded.
    2011-07-10 18:15:28 [INFO] CommandBook: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-10 18:15:28 [INFO] [iChat] Found Permissions (v3.1.6)
    2011-07-10 18:15:28 [INFO] iChat (v2.3.1) enabled
    2011-07-10 18:15:29 [INFO] [MYHOME]: 127 homes loaded
    2011-07-10 18:15:29 [INFO] [MYHOME] Permissions enabled using: Permissions v3.1.6
    2011-07-10 18:15:29 [WARNING] [MYHOME] 'Help' isn't detected. No /help support.
    2011-07-10 18:15:29 [INFO] [MYHOME] MyHome 1.9.5 enabled
    2011-07-10 18:15:29 [INFO] [MYWARP] [MYWARP]: 158 warps loaded
    2011-07-10 18:15:29 [INFO] [MYWARP] Permissions enabled using: Permissions v3.1.6
    2011-07-10 18:15:29 [WARNING] [MYWARP] 'Help' isn't detected. No /help support.
    2011-07-10 18:15:29 [INFO] [MYWARP] MyWarp 2.0 enabled
    2011-07-10 18:15:29 [INFO] [OKB3] Attempting to enable OKB3 v2.1.7 by Kalman Olah...
    2011-07-10 18:15:29 [INFO] [OKB3] Initiating auto-update...
    2011-07-10 18:15:29 [INFO] [OKB3] A new version of OKB3, v2.2.0 is available.
    2011-07-10 18:15:29 [INFO] [OKB3] You already have the latest version of OKB3 in your /plugins/OKB3/update/ folder.
    2011-07-10 18:15:29 [INFO] [OKB3] Successfully hooked into Permissions.
    2011-07-10 18:15:29 [INFO] [OKB3] Attempting to load configuration file...
    2011-07-10 18:15:29 [INFO] [OKB3] Configuration file successfully loaded.
    2011-07-10 18:15:29 [INFO] [OKB3] Attempting to load PlayerList file...
    2011-07-10 18:15:29 [INFO] [OKB3] PlayerList file successfully loaded.
    2011-07-10 18:15:29 [INFO] [OKB3] Attempting to load BanList file...
    2011-07-10 18:15:29 [INFO] [OKB3] BanList file successfully loaded.
    2011-07-10 18:15:29 [INFO] [OKB3] [DB] Initializing MySQL connection...
    2011-07-10 18:15:29 [INFO] [OKB3] [DB] MySQL connection successful.
    2011-07-10 18:15:29 [INFO] [OKB3] OKB3 v2.1.7 enabled successfully.
    2011-07-10 18:15:29 [INFO] WorldEdit 76-084e945 enabled.
    2011-07-10 18:15:29 [INFO] WorldEdit: Permissions plugin detected! Using Permissions plugin for permissions.
    2011-07-10 18:15:29 [INFO] LWC: Loaded 133 locale strings (0 overrides)
    2011-07-10 18:15:29 [INFO] Using Permissions API
    2011-07-10 18:15:29 [INFO] LWC: Loading SQLite
    2011-07-10 18:15:29 [INFO] LWC: Using: Native
    2011-07-10 18:15:29 [INFO] LWC: Precached 1 protections.
    2011-07-10 18:15:29 [INFO] LWC: At version: 3,21-git-LWC-2936c58564bf9d84e97a9a024af1644c8f67f269-b54jnks
    2011-07-10 18:15:29 [INFO] Done (0,276s)! For help, type "help" or "?"
    2011-07-10 18:16:00 [INFO] canhazcookie [/<ip>:51494] logged in with entity id 106 at ([world] 62.66859414942158, 64.0, -133.91494021984857)
    2011-07-10 18:16:00 [INFO] [OKB3] canhazcookie's ranks successfully updated.
    2011-07-10 18:16:10 [INFO] [OKB3] canhazcookie's ranks successfully updated.
    
     
  14. Offline

    Kalman Olah

    I thought I knew what your issue was, so I tested it...Turns out nothing's wrong. Whatever is the issue here, I'm pretty sure my plugin has nothing to do with it =/

    EDIT: as a last suggestion I'd have you clear your globalUsers.yml file. Make sure canhazcookie isn't in there.
     
  15. Offline

    h0us3cat

    globalUsers.yml is emty
    What version of permissions do you use?
     
  16. Offline

    Kalman Olah

    I've tested with 3.1.5 and 3.1.6.
     
  17. Offline

    h0us3cat

    ok I am on 3.1.6
    What mysql version?
     
  18. Offline

    Kalman Olah

    Depends on where I'm testing it. If it was a MySQL error though, you'd be seeing errors in the console.
     
  19. Offline

    h0us3cat

    hmm true, this is just weird.
     
  20. Offline

    Deadlystrike

    does your plugin actualy write in the users file for permmisions?
     
  21. Offline

    Kalman Olah

    No. My plugin tells Permissions to change the player's rank, and Permissions itself writes to the users.yml.
     
  22. Offline

    Deadlystrike

    is there anychance u can also make it write the the prefix color to be the same for rank color in forums?
     
  23. Offline

    Kalman Olah

    No chance of that happening, sorry. There are tons of forum scripts out there, and each one does the title colouring differently.
     
  24. Offline

    Chrisspitz

    I updated my OKB3, deleted my config.yml, and restarted my server and let a new config.yml generate yet its the same as the one I have for some dumb reason >_>
     
  25. Offline

    Kalman Olah

    Care to post it? :p (The latest OKB3 is v2.2.0)
     
  26. Offline

    bocaj812

    I love you, no homo
     
  27. Offline

    Kalman Olah

    Glad you like the update :)

    I just realized there's probably a bug where /fban still kicks a player even though is-server-ban-too is turned off in the config.yml. I'll fix it someday.
     
  28. Offline

    bocaj812

    Also, I'm getting a 'Error: No promotion tracks found' I don't quite know what I did wrong. I organized my promotion track in order ascending from '9' to '1' . '9' being fugitive, '1' being high king.

    Code:
    mode: old-school
    mysql-connection-info:
        mysql-host: ****
        mysql-user: ****
        mysql-password: ****
        mysql-database-name: ****
    old-school-mode:
        usertable: users
        minecraftname-field: username
        rank-field: rank
        enable-multiple-tables: 'false'
        multitable:
            secondtable: mine_table
            useridfield-in-secondtable: user_id_field
            useridfield-in-usertable: user_id_field
    normal-mode:
        forum: custom
        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': High_King
                '2': Kings
                '3': Dukes
                '4': Knights
                '5': Architects
                '6': Nobles
                '7': Commoners
                '8': Nomads
                '9': Fugitives
    whitelist:
        enable-whitelist: 'true'
        global:
            use-as-blacklist: 'false'
            kick-message: Please visit http://jmcs.tk/ to play on this server.
            groups:
                '1': 'true'
                '2': 'true'
                '3': 'true'
                '4': 'true'
                '5': 'true'
                '6': 'true'
                '7': 'true'
                '8': 'true'
                '9': 'true'
    nickname-sync:
        enable-nickname-syncing: 'false'
        nickname-field-in-usertable: ''
    forum-banning:
        is-server-ban-too: 'true'
        banned-forum-user-rank-id: '10'
        unbanned-forum-user-rank-id: '9'
        ban-message: You have been banished! Go to the forum to plead your case!
    promotion-tracks:
        '9': '8'
        '8': '7'
        '7': '6'
        '6': '5'
        '5': '4'
        '4': '3'
        '3': '2'
        '2': '1'
    
     
  29. Offline

    Kalman Olah

    It has to go from 1 TO 9....I see no 1. It starts the search at 1, so if you don't have that, the entire thing doesn't work.
    Format: 'NUMBER(1-9)': 'RANK ID'

    EDIT: Promotions happen like this:
    1 -> 2 -> 3 etc... -> 9
    Demotions happen like this:
    9 -> 8 -> 7 etc... -> 1

    You can go higher or lower than 9, but the 1 has to be there.
    EDIT: All of these have to be listed in the groups portion, needless to say. all of the rank IDs, I mean.
     
  30. Offline

    bocaj812

    I figured that out however, no matter if I do this
    Code:
    promotion-tracks:
        '1': '1'
        '2': '1'
        '3': '2'
        '4': '3'
        '5': '4'
        '6': '5'
        '7': '6'
        '8': '7'
        '9': '8'
    or this
    Code:
    promotion-tracks:
        '1': '2'
        '2': '3'
        '3': '4'
        '4': '5'
        '5': '6'
        '6': '7'
        '7': '8'
        '8': '9'
    But whenever I do /fpromote, it actually demotes them XD and /fdemote promotes them.

    Ok i suppose I could just invert everyones ranks in the database not too difficult

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

    Kalman Olah

    No dude, just switch it like this:
    Code:
    promotion-tracks:
        '1': '9'
        '2': '8'
        '3': '7'
        '4': '6'
        '5': '5'
        '6': '4'
        '7': '3'
        '8': '2'
     

Share This Page