thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]  (Read 34422 times)

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #75 on: January 30, 2012, 11:28:48 PM »
hey can i anyone give me the updated GEOIP.DAT file, dont say download it from the maxmind website coz the link is screwed up, its broken not working, some1 upload it to mediafire and give me the link.... Thanks in advance
Try this:
http://www.rvoclan.com/xlrstats/GeoIP/GeoIP.dat
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline islamsaab

  • Jr. Member
  • **
  • Posts: 45
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #76 on: September 03, 2012, 06:15:07 PM »
i just did as you said:


"3. Open your B3.xml file (in b3/conf) and add the next line in the
<plugins> section of the file:

<plugin name="countryfilter" priority="12" config="@b3/extplugins/conf/countryfilter.xml"/>

The number 12 in this just an example. Make sure it fits your
plugin list.
"
wich plugins should i have to make it work? GeoIP Welcom plugin maybe???
for testing i put my country and i change my admin lvl to member. but it not kicked me.

Offline dpi

  • Newbie
  • *
  • Posts: 1
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP]
« Reply #77 on: February 26, 2013, 01:11:02 PM »
It should be noted that this plugin works with Battlefield 3 as in Git HEAD.

Op: Please update thread title.

Offline arifrezza

  • Jr. Member
  • **
  • Posts: 11
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]
« Reply #78 on: April 13, 2013, 12:08:56 AM »
!cfcountry command works for me.. But why this plugin doesn't show the country automatically when a player joins? Please help!!!!

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]
« Reply #79 on: April 23, 2013, 08:45:53 PM »
!cfcountry command works for me.. But why this plugin doesn't show the country automatically when a player joins? Please help!!!!
You might need the geowelcome plugin for that.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline arifrezza

  • Jr. Member
  • **
  • Posts: 11
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]
« Reply #80 on: April 24, 2013, 08:07:28 PM »
Thanks... got it worked... 

Offline Canta

  • Jr. Member
  • **
  • Posts: 15
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]
« Reply #81 on: April 29, 2013, 03:32:18 AM »
I wanted to put
<set name="maxlevel"> 100 </ set>
does not work.
Only works maxLevel 1.
I want you to not ignore any level.
I'm doing something wrong or do not leave this plugin?
thanks

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]
« Reply #82 on: April 29, 2013, 03:35:57 PM »
how about:

<set name="maxlevel">superadmin</ set> OR
<set name="maxlevel">100</ set> (i took the spaces out)

Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Canta

  • Jr. Member
  • **
  • Posts: 15
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]
« Reply #83 on: April 29, 2013, 07:17:03 PM »
tested in these ways:

<set name="maxlevel">superadmin</set>
<set name="maxlevel">100</set>
<set name="maxlevel"></set>

Always get the log like this:

130429 19:05:12   DEBUG   'CountryfilterPlugin: Ignored names: []'
130429 19:05:12   DEBUG   "CountryfilterPlugin: Ignored IP's: []"
130429 19:05:12   DEBUG   'CountryfilterPlugin: Ignored maxLevel: 1'

not working ???

Offline Canta

  • Jr. Member
  • **
  • Posts: 15
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]
« Reply #84 on: April 29, 2013, 11:46:04 PM »
The problem is that editing the countryfilter.xml not work, to ignore ips, names and level.
You need to edit the countryfilter.py and if it works.
Example:
Default lines countryfilter.py:
     ignore_names = []
     ignore_ips = []
     _maxLevel = 1

Edit:
    ignore_names = 'dani,MordyT'
    ignore_ips = '1.23.22.1,52.26.45.3'
    _maxLevel = 100
and if it works ;)

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: CountryFilter [CoD|CoD:UO|CoD2|CoD4|UrT|WoP|BF3]
« Reply #85 on: April 30, 2013, 12:24:18 AM »
The problem is that editing the countryfilter.xml not work, to ignore ips, names and level.
You need to edit the countryfilter.py and if it works.
Example:
Default lines countryfilter.py:
     ignore_names = []
     ignore_ips = []
     _maxLevel = 1

Edit:
    ignore_names = 'dani,MordyT'
    ignore_ips = '1.23.22.1,52.26.45.3'
    _maxLevel = 100
and if it works ;)
Interesting find. So basically, the xml is not being loaded/accepted, so it falls back to the info in the .py
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

 


Rate this page +1 at Google Search