Commit Graph

23 Commits

Author SHA1 Message Date
3meraldK 65a272d6cb Config option to disable GeoIP database #2720 2023-09-24 17:26:16 +02:00
Gabriele C 5a3e585883
Fix #2467 2021-12-25 15:38:07 +01:00
Gabriele C 4796069ff8 Link to EssentialsX's MaxMind license tutorial 2020-01-21 10:33:46 +01:00
Gabriele C a43127dd2b
Update the GeoIp database download method [BREAKING] (#1990)
* Update the GeoIp database download method [BREAKING]

Now GeoIp database updates require a ClientID and a LicenseKey, which can be obtained for free at https://www.maxmind.com/en/accounts/current/license-key

* Codestyle
2020-01-21 10:28:50 +01:00
Gabriele C adb3c06f51 Fix #1617
Dinstinct invalid countries ("--") from localhost addresses ("LOCALHOST"), allow localhost access by default.
2018-08-22 16:56:14 +02:00
ljacqu 250bd0d148
Merge pull request #1517 from AuthMe/642-kick-on-fast-commands
#642 - Quick Command Protection
2018-03-19 22:35:49 +01:00
games647 f33446ee25 Migrate to GEO IP 2 (Related #1471) (#1529)
* Migrate to GEO IP 2, because support will drop in April

* Change all links of maxmind to https
* Update maxmind database dependency and add javatar to extract
the database from the tar archive
(now only a small difference in jar file size -> ~80KB smaller)
* Verify downloaded archive using MD5 (There are no other checksums available)
* Migrate to Java NIO instead of old java file I/O (Feedback?)
* Internal Optional usage for nullable values (Feedback?)

Minor:
* Schedule a Bukkit async task instead of creating a thread manually
* Validate ip input string
* Extract validation into single method
* Close all resources safely using try-resources

* More https links

* Add documentation

* Set the same last modification as in the tar archive

* Fix tests

* Comment how the legacy API responded to unknown entries

* Document missing function param

* Document our maxmind dependency modifications

* Include time unit into constant

* More logging for downloading the database

* Add missing return if the database cannot be found

* Delete temporarily file after working with it
2018-03-17 03:00:24 +01:00
HexelDev 844bd24221 Fixed minor code issues 2018-03-05 21:00:24 +01:00
HexelDev c0e1b8082f #642 - Quick Command Protection manager 2018-03-04 17:32:16 +01:00
sgdc3 3d67305e9e Fix country code link #1330 2017-09-16 14:04:32 +02:00
ljacqu 8aa573b9ed Minor fixes as found by Checkstyle 2017-03-05 10:58:29 +01:00
ljacqu 12566f03ef Fix country code link in config comment 2017-01-29 12:40:20 +01:00
ljacqu 5f8a19223f Update ConfigMe and Mockito version 2016-12-23 23:22:05 +01:00
Gabriele C 31d8b38fe5 #826 add setting to define the antibot interval 2016-10-23 22:05:10 +02:00
ljacqu 9466577993 #989 Ensure config comments never exceed 90 chars
- Prevents horizontal scrollbar on markdown page (and in users' editors)
- Add test that each property is accompanied with a comment
2016-10-23 21:12:49 +02:00
Gabriele C ac7bb5c0f6 Configurable antibot delay + delay only on startup
#970
2016-10-05 22:11:13 +02:00
ljacqu c7bb7b460e #927 Integrate ConfigMe into AuthMe (work in progress)
- Replace own code with ConfigMe
2016-08-30 15:28:07 +02:00
Gabriele C b439a0391c Add option to apply the protection also to registered users #860 2016-07-16 21:10:29 +02:00
Xephi 37b6a2f96f Enable antibot automatically and check for bot into AsyncPreLogin #719 2016-05-23 10:03:10 +02:00
ljacqu 223f56425b #699 Unit test that config.yml values correspond to property defaults
- Create unit test
- Correct offending values
2016-05-09 21:15:11 +02:00
ljacqu 55c24b8e64 Test AntiBot + SwitchAntiBotCommand 2016-03-24 22:11:40 +01:00
ljacqu aef18a894a Move PropertyType functionality into Property class 2016-03-16 19:07:00 +01:00
ljacqu 200af9c4c4 Move new configs outside of 'custom' package
- Create properties package for storing the config properties
- Move NewSetting class to main settings pkg
2016-01-19 09:20:55 +01:00