EnhancedBanSystem

Moved

Total Downloads: 3,115 - First Release: Jun 6, 2016 - Last Update: Feb 24, 2018

5/5, 18 likes
  1. Wulf

    Wulf Community Admin

    The plugins aren't really.
     
  2. doesnt work in hurtworld
     
  3. Wulf

    Wulf Community Admin

    Details please.
     
  4. Anybody know what cause this problem? I use files as save system and I have 3 servers all have the same banlist file but on one server everytime it starts it throw this error and the banlist is not loaded. When I look into that banlist there is only null nothing else.. and if I copy banlist from other server and reload the plugin it works. But after restart it throw this error and null banlist again and banned people connect.

    Code:
    05:12 [Error] Failed to call hook 'OnServerInitialized' on plugin 'EnhancedBanSystem v5.0.9' (NullReferenceException: Object reference not set to an instance of an object)
    05:12 [Stacktrace]   at Oxide.Plugins.EnhancedBanSystem.Files_Load () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.OnServerInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0 
    my config
    Code:
    {
      "Ban - Broadcast": true,
      "Ban - Broadcast Chat": true,
      "Ban - Default Ban Reason": "Hacking",
      "Ban - Default Reason": "Banned",
      "Ban - Evade": true,
      "Ban - Evade Reason": "Ban Evade",
      "Ban - Log": true,
      "Ban - Message - Broadcast": "An admin banned {0} from the server for {1}",
      "Ban - Message - Deny Connection - Permanent": "You are banned on this server",
      "Ban - Message - Deny Connection - Temp": "You are temp-banned on this server",
      "Ban - Message - Player": "An admin banned you for {0}",
      "Ban - permission": "enhancedbansystem.ban",
      "Banlist - Permission": "enhancedbansystem.banlist",
      "Bans - Broadcast": true,
      "Bans - Broadcast Message": "{0} was banned from the server ({1})",
      "Bans - Default Reason": "Banned",
      "Bans - Permission": "enhancedbansystem.ban",
      "BanSystem - 0: Both System, 1: LocalData, 2: OnlineWebRequest": 1,
      "DataType - Files - use": true,
      "DataType - MySQL - Database": "banlist",
      "DataType - MySQL - Host": "localhost",
      "DataType - MySQL - Pass": "toor",
      "DataType - MySQL - Port": 3306,
      "DataType - MySQL - use": false,
      "DataType - MySQL - User": "root",
      "DataType - Native - use": false,
      "DataType - PlayerDatabase - IP Filename": "EnhancedBanSystem_IPs.json",
      "DataType - PlayerDatabase - use": false,
      "DataType - SQLite - Database Filename": "banlist.db",
      "DataType - SQLite - use": false,
      "DataType - WebAPI - Banlist": "http://webpage.com/banlist.php?startid={startid}",
      "DataType - WebAPI - Host": "http://webpage.com/api.php?action=ban&pass=mypassword&id={id}&steamid={steamid}&name={name}&ip={ip}&reason={reason}&source={source}&game={game}&platform={platform}&server={server}&tempban={expiration}",
      "DataType - WebAPI - IsBanned": "http://webpage.com/api.php?action=isbanned&pass=mypassword&id={id}&update={update}&steamid={steamid}&ip={ip}&time={time}&name={name}&game=Rust&server=rust.kortal.org:28015",
      "DataType - WebAPI - Unban": "http://webpage.com/api.php?action=unban&pass=mypassword&steamid={steamid}&name={name}&ip={ip}&name={name}&source={source}",
      "DataType - WebAPI - use": false,
      "Denied Connection - Log": true,
      "Kick - Broadcast": true,
      "Kick - Broadcast Chat": true,
      "Kick - Broadcast Message": "{0} was kicked from the server ({1})",
      "Kick - Log": true,
      "Kick - Message - Broadcast": "{0} was kicked from the server for {1}",
      "Kick - Message - Player": "An admin kicked you for {0}",
      "Kick - On Ban": true,
      "Kick - permission": "enhancedbansystem.kick",
      "Kick - Permission": "enhancedbansystem.kick",
      "Online Banlist - Ban line request": "http://webpage.com/api.php?action=ban&pass=mypassword&steamid={steamid}&name={name}&ip={ip}&reason={reason}&source={source}&tempban={expiration}",
      "Online Banlist - Banlist page": "http://webpage.com/banlist.php",
      "Online Banlist - Check if banned request": "http://webpage.com/api.php?action=isbanned&pass=mypassword&steamid={steamid}&ip={ip}&time={time}&name={name}",
      "Online Banlist - Check if banned request - answer no": "0",
      "Online Banlist - Check if banned request - answer yes": "1",
      "Online Banlist - Unban line request": "http://webpage.com/api.php?action=unban&pass=mypassword&steamid={steamid}&name={name}&ip={ip}&name={name}&source={source}",
      "Permissions - Ban": "enhancedbansystem.ban",
      "Permissions - Banlist": "enhancedbansystem.banlist",
      "Permissions - Kick": "enhancedbansystem.kick",
      "Permissions - Unban": "enhancedbansystem.unban",
      "Server Info - Game": "Rust",
      "Server Info - IP:PORT": "1.1.1.1:28015",
      "Server Info - Platform": "Steam",
      "Setting - Chat Name": "<color=orange>SERVER</color>",
      "Setting - Message - No Player Found": "No player found",
      "Unban - Broadcast Chat": true,
      "Unban - Permission": "enhancedbansystem.unban"
    }
     
  5. > player.ban 76**************
    ERROR:Object reference not set to an instance of an object

    fix please..
     
  6. Same here. As far as I can tell using Files as bansystem kinda... broken? Even permanent bans getting wiped after some restarts.
    EnhancedBanSystem.json in the data folder contains only null.
    I have no idea what is causing this, gonna try it with another bansystem....
     
  7. 10:53 PM [Error] MySql handle raised an exception in 'EnhancedBanSystem v5.0.9' plugin (SocketException: Hôte inconnu.

    )
    CAN I GET HELP WITH THIS ERROR , i know it cant connect to the database but i dont know what is wrong with it

    "DataType - Files - use": false,
    "DataType - MySQL - Database": "**********",
    "DataType - MySQL - Host": "*********.db.1and1.com",
    "DataType - MySQL - Pass": "**************",
    "DataType - MySQL - Port": 3306,
    "DataType - MySQL - use": true,
    "DataType - MySQL - User": "***************",
    "DataType - Native - use": false,
    "DataType - PlayerDatabase - IP Filename": "EnhancedBanSystem_IPs.json",
    "DataType - PlayerDatabase - use": false,
    "DataType - SQLite - Database Filename": "***********.db",
    "DataType - SQLite - use": true,
     
  8. How evasion works?
     
  9. after a reboot the file EnhancedBanSystem.json is empty
     
  10. If your banlist change to null after restart maybe you still use the "fix" from this thread About server crashes when loading saves | Oxide which saves server few times right after start.
    I think the problem is that when you choose filesystem as your banlist its is saved on every server save and when you save server on startup it doesnt load your banlist and instead save null because the banlist is not loaded yet.
     
  11. fix fix FIXXXXXXXXXXXXXXXXXXXXXXX
     
  12. > unban 76*********
    ERROR:Object reference not set to an instance of an object

    omg..
     
  13. I wanted a way to import my old bans.cfg file into the EBS sqlite database, so I wrote python script to do it. Here it is.
     

    Attached Files:

  14. Wulf

    Wulf Community Admin

    Any errors in your oxide/logs? If there were issues from the changes, there should be errors.
     
  15. The worst plugin ever, i banned a guy he came back not banned?
    WOOOOOOOOOOOW! amazing :) so happy that i can't ban a hacker.
     
  16. can you add "remove all banned user entity" option on/off?
     
  17. how do i do that
     
  18. Banning and unbanning using the native rust ban system is not working.

    Code:
    (17:56:39) | ERROR:Object reference not set to an instance of an object
    (17:56:39) | SQLite: 0 matching bans were removed
    (17:56:39) | SQLite: 0 matching bans were removed
    I checked the oxide logs and found no debug.
     
  19. We got the same
     
  20. Hmm, I found out that it works for players that you unban that were banned after the library changes in Oxide, any bans before then will give me an error.