EnhancedBanSystem

Moved

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

5/5, 18 likes
  1. string GetMsg(string key, object steamid = null) { return lang.GetMessage(key, this, (steamid != null ? steamid.ToString() : "DEBUG: Null steam id!")); }
     
  2. Well, it's compiled alright, all permissions granted to group mod admin etc. but, I can't unban already banned players from list. No errors in console, just text "[Info]", that's all.
     
  3. got this error in log:

    Code:
    [Error] Error while compiling EnhancedBanSystem.cs(812,35): error CS0117: `ConsoleSystem' does not contain a definition for `Broadcast'
    can u fix it please?
     
  4. Wulf

    Wulf Community Admin

    That isn't from this version, just download this version.
     
  5. Can someone help me transfer bans made using the previous EBS. Please help ASAP as banned players are able to join.
    EDIT: I have since fixed the problem
     
    Last edited by a moderator: Jul 15, 2016
  6. How? I'm still unable to unban, with re-ban. I'm just erasing 1 ban from file, then oxide.reload EBS, that helps ) but it's too lame ))
     
  7. why 2 broadcast?
    and not working unban with steamid
     

    Attached Files:

    Last edited by a moderator: Jul 15, 2016
  8. It is because the my old ebs file had unicode characters in it (symbols) I went through it and just cleared the name section for anyone that had it and pasted that into the newly created on by the new EBS. Hope that helps :).
    Steps.
    Step 1. Copy EBS data file to desktop
    Step 2. Delete EBS data file on server
    Step 3. Reload the new EBS
    Step 4. Clear out any names with symbols, or foreign characters and keep it as "" in the file on the desktop
    Step 5. Save that file as ANSI coding
    Step 6. Replace that file into data
    Step 7. Reload again
     
  9. Kama Sutra :DD
     
  10. someone can help?
     
  11. Code:
    [07/16/2016 17:18:23] [Oxide] 17:18 [Debug]  at Oxide.Plugins.EnhancedBanSystem.GetMsg (System.String key, System.Object steamid) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.ExecuteBan (System.Object source, System.String key, System.String steamid, System.String name, System.Collections.Generic.List`1 ips, System.String reason, Int32 duration) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.isBanned (System.String steamid, System.String name, System.String ip, System.String& reason, System.Int32& expiration) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.OnUserConnected (IPlayer player) [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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    Code:
    [07/16/2016 17:18:23] [Oxide] 17:18 [Error] Failed to call hook 'OnUserConnected' on plugin 'EnhancedBanSystem v4.0.5' (NullReferenceException: Object reference not set to an instance of an object)
    [DOUBLEPOST=1468679735][/DOUBLEPOST]And sometimes ban dont work...

    3 identical ban and I can ban its infinite time:
    Code:
        {
          "steamID": "76561198317989318",
          "reason": "Banned",
          "name": "Pn",
          "date": "1468678703.33925",
          "IPs": [
            "121.46.18.41"
          ],
          "expiration": 0,
          "source": null
        },
        {
          "steamID": "76561198317989318",
          "reason": "Banned",
          "name": "Pn",
          "date": "1468678863.22732",
          "IPs": [
            "121.46.18.41"
          ],
          "expiration": 0,
          "source": null
        },
        {
          "steamID": "76561198317989318",
          "reason": "Banned",
          "name": "Pn",
          "date": "1468678894.80928",
          "IPs": [
            "121.46.18.41"
          ],
          "expiration": 0,
          "source": null
        }
     
    Last edited by a moderator: Jul 16, 2016
  12. seems like there is a bug indeed. I'll look into it. Might take some time to fix it.
     
  13. That's why the old one, was a good one ;)
     
  14. After update ban steamid sametimes dont work.

    One more error:
    Code:
    [Oxide] 20:11 [Debug] ExType: TargetInvocationException
    [Oxide] 20:11 [Error] Failed to call hook 'OnServerCommand' on plugin 'RustCore v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 20:11 [Debug]   at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Reply (System.String message, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EnhancedBanSystem.cmdBan (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    Plugin is broken...
     
    Last edited by a moderator: Jul 17, 2016
  15. Please make it compatible with StrikeSystem
     
  16. Unban dont working too. What with plugin, guys????

    Console when i unban players:
    [Oxide] 00:02 [Info]
    [Oxide] 00:02 [Info]
    [Oxide] 00:02 [Info]
     
  17. The same...
     
  18. as i said
     
  19. I mean, after a certain amount of strikes the player gets banned with the last Strike reason for a certain amount of time we choose in the StrikeSystem config.
    [DOUBLEPOST=1468796144][/DOUBLEPOST]Can you make it like that? like the old enhanced ban system.
    [DOUBLEPOST=1468796348][/DOUBLEPOST]This:
     

    Attached Files:

  20. the plugin doesnt event load for me :/