EnhancedBanSystem

Moved

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

5/5, 18 likes
  1. "unwatch" doesn't work and after update it - i get notify on my email. so this can be considered spam.
     
  2. I'm still getting the error.

    Code:
    [10/08/2017 08:31:25] Failed to call hook 'CanUserLogin' on plugin 'EnhancedBanSystem v5.1.8' (NullReferenceException: Object reference not set to an instance of an object)
     
  3. Is there an API request that allows for kicking of players?
     
  4. Wulf

    Wulf Community Admin

    API request? This plugin handles banning, but if you'd like a command or something for kicking, those exist in other plugins. Oxide also provides API for kicking or you can kick directly though the games.
     
  5. Oh, I wasn't aware an API on the Oxide level existed that I could use in my custom built admin website. Could you provide the resource link for that? (For Rust)
     
  6. Wulf

    Wulf Community Admin

    What exactly are you wanting? A command to call? A method to call?
     
  7. So as he has:
    "DataType - WebAPI - Banlist": "http://webpage.com/banlist.php?startid={startid}",
    "DataType - WebAPI - Host": "http://webpage.com/api.php?action=b...latform}&server={server}&tempban={expiration}",
    "DataType - WebAPI - IsBanned": "http://webpage.com/api.php?action=i...{name}&game=Rust&server=rust.kortal.org:28015",
    "DataType - WebAPI - Unban": "http://webpage.com/api.php?action=u...me={name}&ip={ip}&name={name}&source={source}",

    I want:
    DataType - WebAPI - Kick": "http://webpage.com/api.php?action=kick&pass=mypassword&id={id}&steamid={steamid}&name={name}",
    etc.

    So I need a plugin that can handle those requests if I Call it from a php / js function.
     
  8. Wulf

    Wulf Community Admin

    Ah, so not quite what I was thinking of. :p
     
  9. Any fix yet ?

    Code:
    [10/09/2017 12:21:02] Failed to call hook 'CanUserLogin' on plugin 'EnhancedBanSystem v5.1.8' (NullReferenceException: Object reference not set to an instance of an object)
    [10/09/2017 12:21:49] Failed to call hook 'CanUserLogin' on plugin 'EnhancedBanSystem v5.1.8' (NullReferenceException: Object reference not set to an instance of an object)
    [10/09/2017 12:21:57] Failed to call hook 'CanUserLogin' on plugin 'EnhancedBanSystem v5.1.8' (NullReferenceException: Object reference not set to an instance of an object)
    [10/09/2017 12:22:39] Failed to call hook 'CanUserLogin' on plugin 'EnhancedBanSystem v5.1.8' (NullReferenceException: Object reference not set to an instance of an object)
     
  10. Slut updated Enhanced Ban System with a new update entry:

    5.1.9

     
  11. arghhh! fix it alreay "Unwatch This Plugin"!!! tired of this spam!
     
  12. I'm still getting.

    Code:
    (22:53:21) | Failed to call hook 'CanUserLogin' on plugin 'EnhancedBanSystem v5.1.9' (NullReferenceException: Object reference not set to an instance of an object)
    (22:53:21) | at Oxide.Plugins.EnhancedBanSystem.IPRange (System.String sourceIP, System.String targetIP) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem+<Files_IsBanned>c__AnonStorey5.<>m__2 (Oxide.Plugins.BanData x) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[Oxide.Plugins.EnhancedBanSystem+BanData].MoveNext () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[Oxide.Plugins.EnhancedBanSystem+BanData].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[Oxide.Plugins.EnhancedBanSystem+BanData]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToList[BanData] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.Files_IsBanned (System.String steamid, System.String ip, Oxide.Plugins.BanData& bandata) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.isBanned_NonDelayed (System.String name, System.String steamid, System.String ip, Boolean update, Oxide.Plugins.BanData& bandata) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.CanUserLogin (System.String name, System.String id, System.String ip) [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 (Oxide.Core.Plugins.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
     
    Last edited by a moderator: Oct 13, 2017
  13. Wulf maybe you can give slut a hand with the error "CanUserLogin"? please. thanks.
     
  14. Wulf

    Wulf Community Admin

    Which game?
     
  15. the game rust
     
  16. Any fix yet ?
    Code:
    (12:06:52) | Failed to call hook 'CanUserLogin' on plugin 'EnhancedBanSystem v5.1.9' (NullReferenceException: Object reference not set to an instance of an object)(12:06:52) | at Oxide.Plugins.EnhancedBanSystem.IPRange (System.String sourceIP, System.String targetIP) [0x00000] in <filename unknown>:0at Oxide.Plugins.EnhancedBanSystem+<Files_IsBanned>c__AnonStorey5.<>m__2 (Oxide.Plugins.BanData x) [0x00000] in <filename unknown>:0at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[Oxide.Plugins.EnhancedBanSystem+BanData].MoveNext () [0x00000] in <filename unknown>:0at System.Collections.Generic.List`1[Oxide.Plugins.EnhancedBanSystem+BanData].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0at System.Collections.Generic.List`1[Oxide.Plugins.EnhancedBanSystem+BanData]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0at System.Linq.Enumerable.ToList[BanData] (IEnumerable`1 source) [0x00000] in <filename unknown>:0at Oxide.Plugins.EnhancedBanSystem.Files_IsBanned (System.String steamid, System.String ip, Oxide.Plugins.BanData& bandata) [0x00000] in <filename unknown>:0at Oxide.Plugins.EnhancedBanSystem.isBanned_NonDelayed (System.String name, System.String steamid, System.String ip, Boolean update, Oxide.Plugins.BanData& bandata) [0x00000] in <filename unknown>:0at Oxide.Plugins.EnhancedBanSystem.CanUserLogin (System.String name, System.String id, System.String ip) [0x00000] in <filename unknown>:0at Oxide.Plugins.EnhancedBanSystem.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    
     
  17. Slut updated Enhanced Ban System with a new update entry:

    5.1.10

     
  18. Hello. I am getting this error:
    oxide.reload EnhancedBanSystem

    Ignored unnecessary '// Reference: Oxide.MySql' in plugin 'EnhancedBanSystem'

    Ignored unnecessary '// Reference: Oxide.SQLite' in plugin 'EnhancedBanSystem'

    Error while compiling: EnhancedBanSystem.cs(1531,20): error CS0234: The type or namespace name `MySql' does not exist in the namespace `Oxide.Core'. Are you missing an assembly reference?
     
  19. Wulf

    Wulf Community Admin

    Which Oxide build are you on?
     
  20. oxide.version

    Protocol: 2024.152.1 Build Date: 10/23/2017 13:43:03 Unity Version: 2017.1.2f1 Changeset: 23432 Branch: main Oxide Version: 2.0.3600