1. Wulf

    Wulf Community Admin

    Wulf submitted a new resource:

    CountryBlock - Block or allow players only from configured countries

    Read more about this resource...
     
  2. The script does not work as intended. Script says to oxide try to kick player, but it's not works.
    suggestions for some workaround?

    p.s. i'm try to rewrite kick method with GameManager.Instance?.DisconnectPlayerSync(player, reason);
    still not works =(
     
  3. Wulf

    Wulf Community Admin

    It'll be fixed after an upcoming Oxide build. It isn't an issue with the kick, it's just when the kick happens.
     
  4. Thank you Wulf for Oxide and this neat plugin. I wanted to drop in some errors my console started kicking out very rapidly, actually causing the server fps to drop significantly until I unloaded the plugin. It happened pretty randomly, and the guy that kept getting disconnected is a regular player that was never kicked before. Here is a screen cap of the console: Country Block.jpg
    After I unloaded the plugin, it continued to lag and spit out that error for a second or two and then everything was back to normal.

    I appreciate any help
     
  5. After last update this plugin works perfectly. Thanks... I'm recomend move site(url) list to config file... For now i'm disable 3 last site's because they works with errors and sometime an unaccessible...
     
  6. Wulf

    Wulf Community Admin

    Well, those are pretty much the only sites I know of. The reason they aren't in the config, is because they don't all provide the same response.
    [DOUBLEPOST=1449800615][/DOUBLEPOST]
    I'll look into it, thanks.
     
  7. How do i block other countries as spain, the us, i im hosting a just south american country.
    Also im getting an error: Getting country for (ip) failed!(0)
     
    Last edited by a moderator: Dec 11, 2015
  8. Wulf

    Wulf Community Admin

    Set 'whitelist' to true, and then remove the other countries under 'CountryList' and put the country codes you'd like, such as BR for Brazil.
    It accepts the two-digit country codes: Country Codes, Phone Codes, Dialing Codes, Telephone Codes, ISO Country Codes.
     
  9. Wulf

    Wulf Community Admin

    Without knowing the IP, I can't really see why it failed.
     
  10. [Oxide] 1:10 AM [Info] [CountryBlock] Getting country for 138.117.8.21 failed! (0)

    Also im getting this, the ip is from argentina AR which is allowed. After some tried they can enter.
    Code:
    [Oxide] 1:35 AM [Info] [CountryBlock] 76561198217706117
    [Oxide] 1:35 AM [Warning] 76561198217706117, This server doesn't allow players from XX
    Kicking player [HawK] TOPGamer for This server doesn't allow players from XX
    Player disconnected - [HawK] TOPGamer
     
  11. Wulf

    Wulf Community Admin

    I'm not sure why that is happening, but try again once I release 1.0.2.
     
  12. Hi there. Is there a tutorial about configuring regions.
     
  13. Wulf

    Wulf Community Admin

    See CountryBlock | Oxide.
     
  14. Code:
    {
      "CountryList": [
        "CN",
        "RU",
        "UA"
      ],
      "Whitelist": true
    }
    Didn`t kick players from Russia and Ukraine
     
  15. Wulf

    Wulf Community Admin

    You have it set to whitelist, so it won't kick those in the list. Set the whitelist to false.
     
  16. Now works! Thanks :)
    Wulf, pm me please, i need help with plugin, that kick players with restricted characters.
     
  17. Wulf

    Wulf Community Admin

    Wulf updated CountryBlock with a new update entry:

    1.0.2

     
  18. work ?
     
  19. it doesnt seem to be working now? since patch its allowing the country i had blocked before bk in?