1. Wulf

    Wulf Community Admin

    I think I see the issue now, will post an update shortly.
     
  2. Wulf

    Wulf Community Admin

    Wulf updated Natives with a new update entry:

    Fixed checking for local IP

     
  3. Thanks for the quick update, however, it seems as it's not loading correctly, when restating the server:
    Code:
    5:04 PM [Info] Loaded plugin Natives (v0.1.2) by Wulf
    
    But:
    Code:
    5:04 PM [Info] [Natives] Getting country for server failed!
    5:04 PM [Info] [Natives] sendjes connected from DK
    5:04 PM [Info] [Natives] sendjes kicked for not being from the homeland, DK!
    
    Then I:
    Code:
    oxide.reload natives
    
    And then it works:
    Code:
    5:05 PM [Info] Loaded plugin Natives (v0.1.2) by Wulf
    5:05 PM [Info] [Natives] Server's country: DK
    5:05 PM [Info] [Natives] sendjes connected from DK
    
     
  4. Wulf

    Wulf Community Admin

    Try the attached one if you could please.
     
  5. Just tested it, and I still need to reload it for it to work.
     
  6. Wulf

    Wulf Community Admin

    Try the attachment below please. :)
     

    Attached Files:

  7. Didn't work without reload:
    Code:
    5:31 PM [Info] [Natives] Getting country for server failed!
    5:31 PM [Info] [Natives] Getting country for server failed!
    5:31 PM [Info] [Natives] Getting country for server failed!
    5:31 PM [Info] [Natives] Getting country for server failed!
    5:31 PM [Info] [Natives] Getting country for server failed!
    5:31 PM [Info] [Natives] Getting country for server failed!
    5:31 PM [Info] [Natives] Getting country for server failed!
    5:31 PM [Info] [Natives] Server's country: DK
    
     
  8. Wulf

    Wulf Community Admin

    What does it show when debug mode is set to true?
     
  9. Code:
    5:47 PM [Info] [Natives] Server's IP: 0.0.0.0
    5:47 PM [Info] [Natives] Server's IP: 0.0.0.0
    5:47 PM [Info] [Natives] Server's IP: 0.0.0.0
    5:47 PM [Info] [Natives] Server's IP: 0.0.0.0
    5:47 PM [Info] [Natives] Server's IP: 0.0.0.0
    5:47 PM [Info] [Natives] Server's IP: xx.xx.xxx.xxx
    5:47 PM [Info] [Natives] Getting country for server failed!
    5:47 PM [Info] [Natives] Getting country for server failed!
    5:47 PM [Info] [Natives] Getting country for server failed!
    5:47 PM [Info] [Natives] Getting country for server failed!
    5:47 PM [Info] [Natives] Getting country for server failed!
    5:47 PM [Info] [Natives] Server's country: DK
    
    ps. I've hidden the IP.
     
  10. Wulf

    Wulf Community Admin

    And that is after reloading, or after restarting the server?
     
  11. After Restart, haven't tried reloading, but it works, it does not kick me anymore.
     
  12. Wulf

    Wulf Community Admin

    So it looks like it's trying to get the IP before Steam knows the IP... hmmm... I hate having to add a timer back, but I may have to.
     
  13. I was thinking the same, and a timer, well, if that's what it takes.
     
  14. Wulf

    Wulf Community Admin

    Hopefully we'll have a OnServerInitialized hook soon like Oxide Legacy has, but for now I'll add a timer. Try the below attachement please.
     

    Attached Files:

  15. Nailed it, no more "errors".
     
  16. Wulf

    Wulf Community Admin

    Great! Thanks for testing. :)
     
  17. No worries man, this is by far one of my favorite plugins.
     
  18. Wulf

    Wulf Community Admin

    Wulf updated Natives with a new update entry:

    Added timer to prevent premature server IP checking

    [DOUBLEPOST=1414689060][/DOUBLEPOST]
    Here ya go: http://oxidemod.org/resources/country-block.698/ ;)
     
  19. Need some help, i will use this plugin but it won´t work correctly. Here i´ve been maked the .lua in local debug true an this is the textt:
    5:19 AM [Info] [Natives] ErRoR connected from DE
    5:19 AM [Info] [Natives] ErRoR kicked for not being from the homeland, DE!

    Have anyone the same problems like me?
     
  20. Wulf

    Wulf Community Admin

    Try the latest update once I push it.