Country Filter
Country Filter
Description
Country Filter is simple plugin for Bukkit/Spigot servers. It serves as a filter of players for your server. It filters players by their home country. You can make white-list or blacklist of countries which you'd like to allow or block.
Installation
You can simply download compiled version from releases and drop it to your plugins folder. And you're done!
Commands
- /cfilter - displays few stats and version of plugin
Known bugs
-
Some players countries are unable to be recognized due to limitation of IPv4 GeoIP data.
This problem can be solved by allowing or blacklisting country code "--".
LICENSE
This project is licensed under MIT License. More info is available in LICENSE file.
Contribution
We appreciate any contributions or big help you make with your suggestions and bug reports.
Source code
Source code is available on my GitHub page here.
@Sandertjeuh
Then send me list of your plugins and i will try it.
@sgcsim
Any ideas how this is coming then? can it be blocked by antijoinbot or noproxy perhaps?
@Sandertjeuh
I have test it for this version and everything was working ok.
Bump!
@sgcsim
-Java7 version 25
-craftbukkit 1.6.2-R0.1
@Sandertjeuh
Ok which version of Java & CraftBukkit you have on your server ?
@sgcsim
the config has every time an # in the line for the comments... it just pastes wrong here i guess. Redownloaded the config & plugin, still doesn't work
@DmuTpuu
And are you sure they comes from russia ? You can try it by ip on my web http://lab.ps-bred02.eu/country_codes.php ... And one question when some player connects from Russia is there any bugs reported in console ?
@sgcsim
Strange. I blacklisted country RU, and still can not stop :(
@Sandertjeuh
I have try it and it is working but you can't remove '#' from config it may not working. (Before any comment must be '#') ...
@DmuTpuu
It is working normally ;)
@sgcsim here's my config...
edited in notepad and parsed it online...
#
#
#
#
#
#
#
#
#
---------
- Country Filter plugin by P_S 2013 ----------
- BukkitDev http://bit.ly/13wlJ5G -
- Bug report to http://bit.ly/WnvG3y -
- Changelog on http://bit.ly/15DshyQ -
- www.ps-bred02.eu -
- [email protected] ----------#
#
#
#
#
#
#
#
#
###
#
#
#
#
#
#
#
Begin of Config
#
#
#
#
#
#
#
#
#
# List of countries#
# List of country codes can be found at http://bit.ly/1czlGcFcountriesList:
- 'NL'
- 'BE'
#
# Use list as#
# 0 - Whitelist#
# 1 - BlacklistlistFunction: 0
#
# Which action will be done before player login when country will be found on blacklist#
# 0 - Disabled#
# 1 - Abort login#
# 2 - Abort login & announce to admins#
# 3 - Abort login & announce to chatpreLoginAction: 3
#
# Disconnect messagedisconnectMessage: '&cTHIS SERVER IS DUTCH ONLY!'
#
# Announce info about player before login#
# 0 - Disabled#
# 1 - Console only#
# 2 - Admins and console#
# 3 - Chat and consoleannounceLogin: 1
#
# Update checker which checks version of plugin with PSB Update ServerupdateChecker: true
#
# URL to download GeoLite database by www.maxmind.com#
# Legacy info: This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/.#
# Default URL: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gzGeoLiteDownloadURL: 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz'
#
#
#
#
#
#
#
#
#
END of Config#
#
#
#
#
#
#
#
#
#
# Plugin version#
# Provides info for plugin and auto update system#
# string (X.X.X.X)version: '1.0.0.0'
@sgcsim
Well, what is it? :)
@sgcsim
Thank!
@Sandertjeuh
Send me your config please ...
@DmuTpuu
Ok I will check why it is not working ;)
@sgcsim
No, it works :(. You can do under 1.5.2? please Sorry for my English, I'm from Russia
@sgcsim
Well, when i extract the plugin and config into my plugins folder, the plugin all loads fine, it stands between my /plugins list. The issue is, i blocked everything except BE and NL (dutch server) but still people from other countrys can join the server. I dont get any error from the plugin in console, only when i do /cf i get an error...
18:04:52 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) 18:04:52 at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) 18:04:52 at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:523) 18:04:52 at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchServerCommand(CraftServer.java:512) 18:04:52 at net.minecraft.server.v1_6_R2.DedicatedServer.ar(DedicatedServer.java:262) 18:04:52 at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:227) 18:04:53 at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) 18:04:53 at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) 18:04:53 at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) 18:04:53 Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 18:04:53 at ps.CF.Core.CmdExecutor.onCommand(CmdExecutor.java:22) 18:04:53 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
Thnx for your help :)
@Sandertjeuh
What do you mean with this question ?
@DmuTpuu
I didn't test it but I suppose it will work ... ;)
Hi! Work to 1.5.2 ?
it doesnt block anything?
@TEECRAFT
You can just copy jar file and it will generate all automatically ;)