1. Thanks, that helped heaps, at least now I know who has been banned lol.
     
  2. @Domestos

    Code:
    [Oxide] 7:21 PM [Error] Failed to initialize plugin EnhancedBanSystem
    File: EnhancedBanSystem.lua Line: 26 Object reference not set to an instance of an object:
      at Oxide.Core.Configuration.DynamicConfigFile.GetEnumerator () [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Utility.TableFromConfig (Oxide.Core.Configuration.DynamicConfigFile config, NLua.Lua lua) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Libraries.LuaDatafile.GetDataTable (System.String name) [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 
     
  3. Wulf

    Wulf Community Admin

    That looks like an issue with your data or configuration file, not the plugin itself.
     
  4. @Wulf

    Code:
    {
      "Messages": {
        "BanMessage": "You are banned for: {reason}. If you think your ban is unjustified, contact [email protected]",
        "DenyConnection": "You are banned for {reason}. If you think your ban is unjustified, contact [email protected]",
        "HelpText": "Benutze /bancheck um zu sehen, für wie lange jemand gesperrt ist.",
        "KickMessage": "You got kicked for: {reason}"
      },
      "Settings": {
        "BroadcastBans": "true",
        "ChatName": "Server",
        "CheckUsableByEveryone": "false",
        "LogToConsole": "true",
        "Permissions": {
          "Ban": "canban",
          "BanCheck": "canbancheck",
          "Kick": "cankick"
        }
      }
    }
    Is it cause the @?
     
  5. Wulf

    Wulf Community Admin

    It shouldn't, that looks fine and validates. What about your data file for the plugin where the bans are stored?
     
  6. @Wulf
    So the config isnt the fault?

    edit://

    The ebsbanlist.json is empty.
     
  7. Wulf

    Wulf Community Admin

    Delete the file while the server is shutdown, and then see what it does after starting again.
     
  8. The ebsbanlist.json contains now:

    Code:
    {}
    -----------------------------------

    Thank you very much for your extensive help. :)
     
  9. Wulf

    Wulf Community Admin

    All working now?
     
  10. @Wulf
    Yes.
    And for everyone who has the problem:

    It doesnt help to reload the plugin, cause the file contains "null".
    You must shutdown your server or fill the data file with "{}".
     
  11. Code:
    [6/20/2015 10:13:49 PM] [Oxide] 10:13 PM [Error] Failed to call hook 'CanClientLogin' on plugin 'Enhanced Ban System'
    File: EnhancedBanSystem.lua Line: 146 attempt to compare nil with number:
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [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>:o
    Getting this errror all of a sudden, data and config are fine according to jsonlint.
     
  12. Did this error only occur once or does it happen frequently?
     
  13. Nvm got it.
     
    Last edited by a moderator: Jun 21, 2015
  14. I just started getting it in the last few days.
     
  15. According to the error it seems one or more of your datafile entries is corrupt.
     
  16. Code:
    > player.bancheck
    [Oxide] 11:16 PM [Error] Failed to call hook 'ccmdBanCheck' on plugin 'Enhanced Ban System'
    File: EnhancedBanSystem.lua Line: 423 attempt to concatenate local 'target' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [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 
     
  17. 423 attempt to concatenate local 'target' (a nil value):...

    Jikey i think you need to have a target.. probably there is no message that if no target given ? i'm not an expert in errors but try with a target..
     
  18. use ebs.debug in the console to deactivate debug mode.
     
  19. Code:
    [Oxide] 10:20 PM [Error] Failed to call hook 'Ban' on plugin 'Enhanced Ban System' File: EnhancedBanSystem.lua Line: 669 invalid arguments to method: Plugin.Call:   at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0   at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [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 
     
  20. Need a little help.

    R-Anticheat flagged up two cheaters, between them they flagged up well over 200 times and subsequently should have been banned. The Anticheat config is set to ban as default along with the other settings so no issues there. EBS on the other hand actually banned the players but for whatever reason they could continue playing even though a ban had been logged. Could we add a check to ensure that the ban gets logged and then it automatically kicks if they are still connected after 5 maybe 10 seconds?