1. Wulf

    Wulf Community Admin

    What command are you using? That is only triggered by using invalid commands.
     
  2. CHR

    CHR

    mhhh

    So im doing something wrong
    i wanna try to blockmyself to proof how it works.
    i got Admin.

    Thars what i do /Country type blacklist
    /Country add DE

    So i shouldnt be able to connect when im correct? I´m admin but i changed Adminexclude to false.
     
  3. Wulf

    Wulf Community Admin

    If you are connected locally, you are automatically excluded as you don't have a country.
     
  4. CHR

    CHR

    It is a paid Server not local at my Network... should i use GER for Germany?
     
  5. Wulf

    Wulf Community Admin

    No, it only uses two-digit country codes.
     
  6. CHR

    CHR

    Well I don't get blocked. And the /country list command does not show up or work. DE was written in the json. I could really need that plugin. I just say "no more russian" I don't get it to work. :/
     
  7. Wulf

    Wulf Community Admin

    It adds and removes fine here with no errors. Make sure you are using the latest plugin and the latest Oxide.

    [​IMG] [​IMG][​IMG]
     
  8. CHR

    CHR

    The Messages also appear for me and the json is written... i Show u
    Code:
    {
      "Settings": {
      "AdminExcluded": "false",
      "CountryList": [
      "UK",
      "US",
      "DE"
      ],
      "ChatNameHelp": "HELP",
      "AuthLevel": 2,
      "ConsoleCommand": "country.block",
      "Broadcast": "true",
      "ChatCommand": "country",
      "ListType": "blacklist",
      "ChatName": "SERVER"
      },
      "Messages": {
      "UnknownListType": "Unknown list type! Use blacklist or whitelist",
      "NoPermission": "You do not have permission to use this command!",
      "NotListed": "{country} is not on the country list!",
      "ListTypeChanged": "Country list type changed to {listtype}",
      "PlayerKicked": "{player} was kicked as their country ({country}) is blocked!",
      "UnknownAction": "Unknown command action! Use add, remove, list, or type",
      "Rejected": "Sorry, this server doesn't allow players from your country!",
      "ChatHelp": [
      "Use /country add countrycode to add a country to the list",
      "Use /country remove countrycode to remove a country from the list",
      "Use /country list to list all the countries on the list"
      ],
      "AlreadyAdded": "{country} is already on the country list!",
      "CountryAdded": "{country} has been added to the country list!",
      "CountryRemoved": "{country} has been removed from the country list!"
      }
    }
    sry for that formatting i dont know how to do it better :/ try /Country list it wont work im sure
    [DOUBLEPOST=1423592154][/DOUBLEPOST]I found the Problem... i got 2 Servers and i connected to the wrong one. Im so sorry for my dumbness. So Sorry. It does work now. Im blocked... so sorry
     
    Last edited by a moderator: Feb 10, 2015
  9. I have some Trouble with Countrycode:
    I deleted the Plugin and the Config json.
    I copied the last Version in the Plugins Folder.
    Restarted the Server.
    And get this Error :
    Code:
    10:35 AM [Error] countryblock: IndexOutOfRangeException while calling cmdCountryBlock:
    10:35 AM [Error] countryblock: Array index is out of range.
      at NLua.MetaFunctions.GetMethodInternal (LuaState luaState) [0x00000] in <filename unknown>:0
      at NLua.MetaFunctions.GetMethod (LuaState luaState) [0x00000] in <filename unknown>:0
      at (wrapper native-to-managed) NLua.MetaFunctions:GetMethod (KeraLua.LuaState)
      at (wrapper managed-to-native) KeraLua.NativeMethods:LuaNetPCall (intptr,int,int,int)
      at KeraLua.Lua.LuaNetPCall (IntPtr luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [0x00000] in <filename unknown>:0
      at NLua.LuaLib.LuaPCall (LuaState luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [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 
     
  10. Can there only be a blacklist to prevent players from countries I dont want in the server or do I need to have a whilelist also ?
     
  11. Wulf

    Wulf Community Admin

    You can set it to be a whitelist or a blacklist, not both. Just configure it for one or the other.
     
  12. What is the difference between the two lists? Will a whitelist or blacklist that says US and UK, will block those 2 countries?
     
  13. Wulf

    Wulf Community Admin

    Whitelist allows only those, blacklist blocks only those.
     
  14. ahh, ok, thank you for your help
     
  15. Wulf

    Wulf Community Admin

    I can't reproduce that error. What are you using for the command?
     
  16. I am getting error when ever someone joins the server.

    Code:
    [Info] [Country Block] "PLAYER" was kicked as their country (The remote server returned an error: (429) Too Many Requests.) is blocked!
    Any ideas?
     
  17. Wulf

    Wulf Community Admin

    That means your server has used up the 1,000 free requests from the ipinfo.io site. I'll likely add backups and alternatives sometime.
     
  18. Thanks for fast response. :)
     
  19. hey wulf been getting this error dude
    Code:
    Failed to call hook 'cmdCountryBlock' on plugin 'Country Block' (IndexOutOfRangeException: Array index is out of range.)
    [Oxide] 11:50 AM [Debug]   at NLua.MetaFunctions.GetMethodInternal (LuaState luaState) [0x00000] in <filename unknown>:0
      at NLua.MetaFunctions.GetMethod (LuaState luaState) [0x00000] in <filename unknown>:0
      at (wrapper native-to-managed) NLua.MetaFunctions:GetMethod (KeraLua.LuaState)
      at (wrapper managed-to-native) KeraLua.NativeMethods:LuaNetPCall (intptr,int,int,int)
      at KeraLua.Lua.LuaNetPCall (IntPtr luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [0x00000] in <filename unknown>:0
      at NLua.LuaLib.LuaPCall (LuaState luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [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