Plugin Help Help with ban managment plugin

Discussion in 'Plugin Help/Development/Requests' started by MinniPvP, Sep 6, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    MinniPvP

    Hi. So the the ban management plugin is not working because i have got a new MySQL database. And the user name of my MySQL database stops with a _2. Whenever i write _2 in the config it automatically write is at (start of my userver)2. So it takes away the _ when i start the server up.


    Could someone help me with this? Please tell me what to write instead of _ for it to work

    Best regards
    MinniPvP
     
  2. Offline

    timtower Administrator Administrator Moderator

    @MinniPvP Put single quotes around the _2, so it will be this:
    '_2'
     
    Xerox262 likes this.
  3. Offline

    MinniPvP

    Hi so i tried what you told me. (start of my username)8'_2'
    8 is the last number before _. It still did not work, do you have any other suggestion?
     
  4. Offline

    timtower Administrator Administrator Moderator

    @MinniPvP Post your entire config please, without the password and host etc
     
  5. Offline

    MinniPvP

    Please Note! The (I covered the four first numbers, for safety reasons) is not in the actual config, i just did it now to cover the first number of it

    Code:
    #
    # Aliases will be found and blocked automatically, e.g. msg will block tell
    debug: false
    databases:
      local:
        enabled: true
        host:
        port:
        name: (I covered the four first numbers, for safety reasons)8'_2'
        user: (I covered the four first numbers, for safety reasons)8'_2'
        password:
        maxConnections: 10
        tables:
          players: bm_players
          playerBans: bm_player_bans
          playerBanRecords: bm_player_ban_records
          playerMutes: bm_player_mutes
          playerMuteRecords: bm_player_mute_records
          playerKicks: bm_player_kicks
          playerNotes: bm_player_notes
          playerWarnings: bm_player_warnings
          ipBans: bm_ip_bans
          ipBanRecords: bm_ip_ban_records
      external:
        enabled: false
        host: 127.0.0.1
        port: 3306
        name: external_bans
        user: root
        password: ''
        maxConnections: 10
        tables:
          playerBans: bm_player_ban_all
          playerUnbans: bm_player_unban_all
          playerMutes: bm_player_mute_all
          playerUnmutes: bm_player_unmute_all
          ipBans: bm_ip_ban_all
          ipUnbans: bm_ip_unban_all
      convert:
        enabled: false
        host: 127.0.0.1
        port: 3306
        name: local_bans
        user: root
        password: ''
        maxConnections: 10
        tables:
          bansTable: bm_bans
          bansRecordTable: bm_ban_records
          ipBansTable: bm_ip_bans
          ipBansRecordTable: bm_ip_records
          kicksTable: bm_kicks
          mutesTable: bm_mutes
          mutesRecordTable: bm_mutes_records
          playerIpsTable: bm_player_ips
          warningsTable: bm_warnings
    mutedCommandBlacklist:
    - msg
    duplicateIpCheck: true
    bypassDuplicateChecks:
    - 0.0.0.0
    - 127.0.0.1
    logKicks: false
    displayNotifications: true
    timeLimits: {}
    warningCooldown: 10
    warningActions:
      enabled: false
    onlineMode: true
    checkForUpdates: true
    offlineAutoComplete: true
    punishAlts: false
    cleanUp:
      kicks: 30
      banRecords: 0
      ipBanRecords: 0
      muteRecords: 0
      readWarnings: 0
      unreadWarnings: 0
     
    Last edited by a moderator: Sep 6, 2015
  6. Offline

    timtower Administrator Administrator Moderator

    @MinniPvP Remove information from it that we can use for bad things, so the actual database information
     
  7. Offline

    MinniPvP

    I have removed the information and covered the first number in the username. The database in the external and convert database section. Was generated with the plugin. So i have covered all the database information
     
  8. Offline

    timtower Administrator Administrator Moderator

    @MinniPvP It removes the _ from the middle of the string?
     
  9. Offline

    MinniPvP

    @timtower after you told me to write '_2' It does not remove more, but the plugin is not working like it use to do. But when i did not have the ' ' it was removing _
     
  10. Offline

    timtower Administrator Administrator Moderator

    @MinniPvP But it should remove the _ when it is part of a bigger string
     
  11. Offline

    MinniPvP

    Do you have any other suggestions to make it work?
     
  12. Offline

    timtower Administrator Administrator Moderator

    @MinniPvP Use a different username to access the database?
     
  13. Offline

    MinniPvP

    Hi. My database is hosted and when i asked my host if they could change it. They told me i should tell the plugin developer about the database error.

    Do someone have a different way to do this?
     
  14. Offline

    timtower Administrator Administrator Moderator

    @MinniPvP Did you tell the plugin dev about this issue?
     
  15. Offline

    MinniPvP

    @timtower No i have not told the plugin dev about this, because I wanted to be sure if this is a error or if i am doing something wrong, but since you guys dont know. I will try one of the older versions of the plugin and if the error continues i will report it to him

    If someone know what the issue is, please tell me here!
     
  16. Offline

    timtower Administrator Administrator Moderator

    @MinniPvP He probably knows his plugin better then us though. (so also configuration)
     
Thread Status:
Not open for further replies.

Share This Page