CountryBlackList

Approved CountryBlackList 3.0.3

No permission to download

tarynkelley

Moderator
Moderator
Nov 14, 2015
559
107
28
Parts Unknown
As I can see the whitelist is Client IP based?

" if OnWhiteList(Player.SteamID, Player.IP):"

What about players with dynamic IPs?

#

Edit upps,

yes i see it checks both ID/ and IP but not necessary both must be correct.
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,463
342
83
Australia
As I can see the whitelist is Client IP based?

" if OnWhiteList(Player.SteamID, Player.IP):"

What about players with dynamic IPs?

#

Edit upps,

yes i see it checks both ID/ and IP but not necessary both must be correct.
Yes, ID's and IP's are checked. As long as one of them is correct then they'll be able to join :)
 
  • Like
Reactions: tarynkelley

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,469
113
At your house.
github.com
Cool.

I suggest putting
GeoIP.GeoIP.IPData Data = GeoIP.GeoIP.Instance.GetDataOfIP(player.IP);

Under the thread though. (To make sure GeoIP will finish the search nicely without causing problems for the server)

Also a quick nnote:

Ini shouldn't be used for logging, to make this faster you could do:

https://github.com/dretax/EACV2/blob/master/EAC.cs#L38

https://github.com/dretax/EACV2/blob/master/EAC.cs#L580
 
  • Like
Reactions: Jakkee

PearlJ

Contributor
Contributor
Aug 14, 2014
86
16
8
27
Italy
misternerd.eu
I update this plugin on 3.0.1 version, but now players in blacklist are not kicked. I don't see errors in console or in logs.

I don't know if with 3.0 version plugin works, because I updated directly on 3.0.1


UPDATE: No nothing, it was my fault. Plugin works well, really nice work!
 
Last edited:
  • Like
Reactions: Jakkee

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,469
113
At your house.
github.com
@Jakkee


Please update your code so we can make less laggs even with sqlite:
C#:
new Thread(() =>
{
    Thread.CurrentThread.IsBackground = true;
    // Call your method here
}).Start();
Currently your thread is not background.
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,463
342
83
Australia
Last edited:

BuSy MinD

New Member
Member
Jul 23, 2018
7
0
1
20
Iran
whats similar between country black list and this what i must to do for exp ban russians country ...? i must change geoip or country black list? can i have more information why they need thems to work?

@Jakkee
@DreTaX