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. i get this kind error
    [SERVER v1.0.18] Console: CountryBlock.cs(11,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
     
  3. Wulf

    Wulf Community Admin

    The latest Oxide snapshot includes it by default.
     
  4. 7:46 PM [Debug] Adding plugin to compilation: CountryBlock
    7:46 PM [Debug] Probably done preparing compilation: CountryBlock
    7:46 PM [Debug] Done preparing compilation: CountryBlock
    7:46 PM [Error] CountryBlock plugin failed to compile!
    7:46 PM [Error] CountryBlock.cs(11,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
     
  5. Wulf

    Wulf Community Admin

    Like I said, it should work fine with the latest Oxide snapshot. If you aren't able to update to that, the old plugin version should work fine, else you can wait for the next Oxide release.
     
  6. need restart server?
     
  7. Wulf

    Wulf Community Admin

    For Oxide updates, the server needs to be shutdown. You could use an old version of the plugin for now though if you'd like.
     
  8. where i can download oxide snapshot?
     
  9. Wulf

    Wulf Community Admin

  10. if i change.
    {
    "CountryList": [
    "CN",
    "RU"
    ],
    "Whitelist": false
    }
    Whitelist": true its allow only CN/RU players for server?
     
  11. Wulf

    Wulf Community Admin

    Yup, false would blacklist, true would whitelist.
     
  12. nice.that blacklist its what i almost ask next but you already answer that?this is best plugins long time:) now chinese hackers cant join server:)
    [DOUBLEPOST=1449514398][/DOUBLEPOST]btw i set whitelist true,with CN/RU and i am FIN but its not stop me.i am owner so mayby thats why plugin not stop me?
     
  13. Ehmmm its not working for me and i think if they change the country on their steam account. it lets them in.
    I have chinese players trying to get in and got kicked all the time and now they are in. :(
     
  14. I get the following error and it doesn't create the config json file:

    7:42 AM [Error] Error while compiling CountryBlock.cs(156,60): error CS0103: The name `permission' does not exist in the current context

    Thanks for this plugin!
     
  15. Wulf

    Wulf Community Admin

    This doesn't have anything to do with their Steam account, it is based off their IP address.

    Are you connecting locally? You won't have an external IP if so, so you won't have a country.

    You'll need to use a dev snapshot or wait for a new Oxide release as mentioned previously.
     
  16. Is this correct?

    {
    "CountryList": [
    "CN"

    ],
    "Whitelist": false
    }

    and do i change that to true to work?
    coz i banned 20 chinese today. however they got in if this is supposed to work
     
  17. Wulf

    Wulf Community Admin

    I'll test when I get a chance, but there is a possibility that their IP wasn't CN-based.
     
  18. hmm ok thanks.
     
  19. right.i connect localy with 1 ping
     
  20. Wulf

    Wulf Community Admin

    Yeah, you'll never be checked then as your local IP isn't from a country.