1. Wulf

    Wulf Community Admin

    Not yet, it's in progress along with the rest of my plugins. :p
     
  2. Hi, this plugin is nice.. but work in last version ?
     
  3. Wulf

    Wulf Community Admin

    It should, it's not a complicated one.
     
  4. And.. Wulf.. this config is work ? Add to blacklist.. RU etc.. thanks for reply..

    Code:
    {
      "Messages": {
        "AlreadyAdded": "{country} is already on the country list!",
        "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"
        ],
        "CountryAdded": "{country} has been added to the country list!",
        "CountryRemoved": "{country} has been removed from the country list!",
        "ListTypeChanged": "Country list type changed to {listtype}",
        "NoPermission": "You do not have permission to use this command!",
        "NotListed": "{country} is not on the country list!",
        "PlayerKicked": "{player} was kicked as their country ({country}) is blocked!",
        "Rejected": "Sorry, this server doesn't allow players from your country!",
        "UnknownAction": "Unknown command action! Use add, remove, list, or type",
        "UnknownListType": "Unknown list type! Use blacklist or whitelist"
      },
      "Settings": {
        "AdminExcluded": "true",
        "AuthLevel": 2,
        "Broadcast": "true",
        "ChatCommand": "country",
        "ChatName": "SERVER",
        "ChatNameHelp": "HELP",
        "ConsoleCommand": "country.block",
        "CountryList": [
          "RU",
          "PL",
          "BY",
          "BG",
          "BA",
          "UA"
        ],
        "ListType": "blacklist"
      }
    }
     
  5. I'm not the guy you wanted an answer from, but yes, your config will work. It will block people from the countries you have added to the list.
     
  6. I got this Error today:

    Code:
    [Oxide] 10:56 AM [Error] Failed to call hook 'cmdCountryBlock' on plugin 'Country Block' (IndexOutOfRangeException: Array index is out of range.)
    [Oxide] 10:56 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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:
     
  7. Wulf

    Wulf Community Admin

    Please post your config and what you used exactly.
     
  8. its okay, i think i solved it.
    If its not solved i will post again.
     
  9. Well my m8 told me that this plugin kicks everyone ? Could any1 confirm this please :p ?
     
  10. Wulf

    Wulf Community Admin

    Test and see, it was working fine last I tested.
     
  11. I'm afraid to do that i dont want to accidentaly kick 60+ people.
     
  12. Wulf

    Wulf Community Admin

    Test locally. ;)
     
  13. i think he has experienced the api limit problem. Are you still up to change that anytime soon ?
     
  14. Wulf

    Wulf Community Admin

    Pretty sure I already have it changed locally, the update just isn't finished yet for other parts. I'll have to check it soon.
     
  15. Is there anyway we could get a version that allows us to host our own IP database (MySQL), thereby not making external web requests and encountering latency/API/etc problems.

    I have always wanted to us this plugin but, it has not worked reliably. It's kicked people I know are logging in from an authorized country.
     
  16. Wulf

    Wulf Community Admin

    I don't know of any IP databases in MySQL, only .dat files, but currently no.
     
  17. To be deleted...

    Seems I solved the problem.
     
    Last edited by a moderator: Sep 3, 2015
  18. Wulf

    Wulf Community Admin

    If the plugin can't get a valid country that matches, it kicks the user.
     
  19. wow you were fast Wulf.
    it is a valid country that should match. FR is in the list and it is whitelist.

    Anyway I checked the plugin, asked a BE and a FR to disconnect and reconnect and they could enter directly so should be ok.