🛡 EpicGuard
A simple AntiBot plugin for newest Minecraft versions.
✅ Supported platforms / Latest release requirements
- Paper 1.20.1+ (all paper forks are supported)
- Velocity 3.3+
- Java 17
✨ Features
- A total of 8 configurable antibot checks:
- Geographical check - country/city blacklist or whitelist.
- VPN/Proxy check - configurable services and caching.
- Nickname check - block certain nickname patterns using regex.
- Reconnect check - require re-joining the server with an identical pair of address and nickname.
- Server list check - require pinging the server before connecting (adding it to the server list).
- Settings check - make sure that player sends a settings packet after joining (vanilla client behaviour).
- Lockdown - temporarily block incoming connections if there are too many of them.
- Name similarity check (BETA)
- Account limit.
- SQLite/MySQL support.
- Live actionbar statistics.
- Automatic whitelisting.
- Console filter.
📚 Commands & Permissions
To be able to use commands, give yourself the epicguard.admin permission.
On different platforms there are additional aliases available, such as /guardvelocity or /epicguardpaper
| Command | Description |
|---|---|
| /guard help | Displays all available commands. |
| /guard reload | Reloads config and messages. |
| /guard whitelist <add/remove> <nick/address> | Whitelist/unwhitelist an address or nickname. |
| /guard blacklist <add/remove> <nick/address> | Blacklist/unblacklist an address or nickname. |
| /guard analyze <nick/address> | Displays detailed information about the specified address or nickname. |
| /guard status | Toggles live attack information on actionbar. |
| /guard save | Forces save to the database. |
🔧 Using EpicGuard API in your project:
The api is not very advanced, and there is not much you can do with it for now.
Gradle (Kotlin)
repositories {
// Snapshots
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
// Releases
mavenCentral()
}
dependencies {
compileOnly("com.github.4drian3d:epicguard-api:[VERSION HERE]")
}
Gradle (Groovy)
repositories {
maven {
url = 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
}
mavenCentral()
}
dependencies {
compileOnly 'com.github.4drian3d:epicguard-api:[VERSION OR COMMIT ID HERE]'
}
Maven
<repositories>
<!-- Only for Snapshots-->
<repository>
<id>sonatype-oss-snapshots1</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.4drian3d</groupId>
<artifactId>epicguard-api</artifactId>
<version>[VERSION HERE]</version>
<scope>provided</scope>
</dependency>
</dependencies>
Using the API
Make sure that EpicGuard is fully loaded before your plugin.// Importing the API class.
import me.xneox.epicguard.core.EpicGuardAPI;
import me.xneox.epicguard.core.manager.AttackManager;
public class EpicGuardAPIExample {
// Accessing the EpicGuardAPI instance.
EpicGuardAPI api = EpicGuardAPI.INSTANCE;
// Obtaining the AttackManager instance:
AttackManager attackManager = api.attackManager();
// Checking if server is under attack.
boolean isUnderAttack = attackManager.isUnderAttack();
// checking current connections per second.
int cps = attackManager.connectionCounter();
// Checking user's country:
String countryId = api.geoManager().countryCode("127.0.0.1");
}
🕵️ Privacy disclaimers
- This plugin connect to various external services, to fully work as intended.
- MaxMind's Geolite2 databases (country and city) are downloaded at the first startup and updated every week. Geolocation of your users is checked locally on your server.
- In the default configuration, IP addresses of connecting users are sent to https://proxycheck.io/ to check if they're not using a proxy or a VPN.
- IPs and nicknames associated with them are stored in the local database (as plain text(!)).
- This plugin periodically checks the latest version released in this repository. This feature can be disabled.
- There is no metrics system or any other kind of data collection.
This is an updated version of EpicGuard for recent versions of Paper, Waterfall and Velocity.
How to Install EpicGuard (Plugin)
EpicGuard by 4drian3d is verified for Folia, Paper, Purpur, Velocity, Waterfall across Minecraft versions 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1 (latest release: 7.6.1, file size: 155 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1) and platform (Folia, Paper, Purpur, Velocity, Waterfall).
- Make sure you have the compatible loader or environment installed for Folia, Paper, Purpur, Velocity, Waterfall.
- Move the downloaded EpicGuard file into your Minecraft
.minecraft/pluginsfolder and launch the game.
All Versions
+ Add Version- [misc: Removed Waterfall support](https://github.com/4drian3d/EpicGuard/commit/d2c04ea119d437149c3687dcf20e3a9ac29c3d12)
- [misc: Updated to Velocity 3.3.0](https://github.com/4drian3d/EpicGuard/commit/159abc353b4d36a50572b91889886d8767832d2f)
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.5.2...7.6.0
- [misc: Removed Waterfall support](https://github.com/4drian3d/EpicGuard/commit/d2c04ea119d437149c3687dcf20e3a9ac29c3d12)
- [misc: Updated to Velocity 3.3.0](https://github.com/4drian3d/EpicGuard/commit/159abc353b4d36a50572b91889886d8767832d2f)
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.5.2...7.6.0
## What's Changed
- [fix: Require a GeoIP private key to download the database](https://github.com/4drian3d/EpicGuard/commit/c42eab8a341b8d70416a9432f35fb0c66d2f17b6)
- [fix: Improved StorageManager#lastSeenAddress performance](https://github.com/4drian3d/EpicGuard/commit/dfd53524340cd6232829770fe22fba5890c87073)
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.5.1...7.5.2
## What's Changed
- [fix: Require a GeoIP private key to download the database](https://github.com/4drian3d/EpicGuard/commit/c42eab8a341b8d70416a9432f35fb0c66d2f17b6)
- [fix: Improved StorageManager#lastSeenAddress performance](https://github.com/4drian3d/EpicGuard/commit/dfd53524340cd6232829770fe22fba5890c87073)
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.5.1...7.5.2
- Change similarity algorithm in https://github.com/4drian3d/EpicGuard/pull/81
- Don't send data if the connection is invalid in https://github.com/4drian3d/EpicGuard/pull/84
- Reimplemented commands using Cloud in https://github.com/4drian3d/EpicGuard/pull/110
- Fixed Paper 1.20.2 Support
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.5.0...7.5.1
- Change similarity algorithm in https://github.com/4drian3d/EpicGuard/pull/81
- Don't send data if the connection is invalid in https://github.com/4drian3d/EpicGuard/pull/84
- Reimplemented commands using Cloud in https://github.com/4drian3d/EpicGuard/pull/110
- Fixed Paper 1.20.2 Support
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.5.0...7.5.1
- Change similarity algorithm in https://github.com/4drian3d/EpicGuard/pull/81
- Don't send data if the connection is invalid in https://github.com/4drian3d/EpicGuard/pull/84
- Reimplemented commands using Cloud in https://github.com/4drian3d/EpicGuard/pull/110
- Fixed Paper 1.20.2 Support
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.5.0...7.5.1
- Added MiniMessage and MiniPlaceholders integration in https://github.com/4drian3d/EpicGuard/pull/61
- Make db download configurable in https://github.com/4drian3d/EpicGuard/pull/70
- Add ip tab completion disable option in https://github.com/4drian3d/EpicGuard/pull/72
- Added configuration migration in https://github.com/4drian3d/EpicGuard/pull/74
- [Add multiple account limits, one during a attack and one normal](https://github.com/4drian3d/EpicGuard/commit/ef6ade356d5f053d7143679e564e85e6f853f0f3)
- [feat: Added Folia Support](https://github.com/4drian3d/EpicGuard/commit/acc6db80af47133ab99e478fdd28a9046028c493) and removed Paper 1.19.x support
## Fixes
- Drastically improve check performance in https://github.com/4drian3d/EpicGuard/pull/71
- Drastically reduce amount of threads that get started when many playe… in https://github.com/4drian3d/EpicGuard/pull/75
- [fix: Fixed the option to disable the update checker](https://github.com/4drian3d/EpicGuard/commit/08cf400c26641ce95a2ef266173320fbd8818358)
- [fix: Fixed possible plugin folder duplication](https://github.com/4drian3d/EpicGuard/commit/3a976ce7568088dcbb6a05a5399e56165b8c56fc)
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.4.1...7.5.0
- Added MiniMessage and MiniPlaceholders integration in https://github.com/4drian3d/EpicGuard/pull/61
- Make db download configurable in https://github.com/4drian3d/EpicGuard/pull/70
- Add ip tab completion disable option in https://github.com/4drian3d/EpicGuard/pull/72
- Added configuration migration in https://github.com/4drian3d/EpicGuard/pull/74
- [Add multiple account limits, one during a attack and one normal](https://github.com/4drian3d/EpicGuard/commit/ef6ade356d5f053d7143679e564e85e6f853f0f3)
- [feat: Added Folia Support](https://github.com/4drian3d/EpicGuard/commit/acc6db80af47133ab99e478fdd28a9046028c493) and removed Paper 1.19.x support
## Fixes
- Drastically improve check performance in https://github.com/4drian3d/EpicGuard/pull/71
- Drastically reduce amount of threads that get started when many playe… in https://github.com/4drian3d/EpicGuard/pull/75
- [fix: Fixed the option to disable the update checker](https://github.com/4drian3d/EpicGuard/commit/08cf400c26641ce95a2ef266173320fbd8818358)
- [fix: Fixed possible plugin folder duplication](https://github.com/4drian3d/EpicGuard/commit/3a976ce7568088dcbb6a05a5399e56165b8c56fc)
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.4.1...7.5.0
- Added MiniMessage and MiniPlaceholders integration in https://github.com/4drian3d/EpicGuard/pull/61
- Make db download configurable in https://github.com/4drian3d/EpicGuard/pull/70
- Add ip tab completion disable option in https://github.com/4drian3d/EpicGuard/pull/72
- Added configuration migration in https://github.com/4drian3d/EpicGuard/pull/74
- [Add multiple account limits, one during a attack and one normal](https://github.com/4drian3d/EpicGuard/commit/ef6ade356d5f053d7143679e564e85e6f853f0f3)
- [feat: Added Folia Support](https://github.com/4drian3d/EpicGuard/commit/acc6db80af47133ab99e478fdd28a9046028c493) and removed Paper 1.19.x support
## Fixes
- Drastically improve check performance in https://github.com/4drian3d/EpicGuard/pull/71
- Drastically reduce amount of threads that get started when many playe… in https://github.com/4drian3d/EpicGuard/pull/75
- [fix: Fixed the option to disable the update checker](https://github.com/4drian3d/EpicGuard/commit/08cf400c26641ce95a2ef266173320fbd8818358)
- [fix: Fixed possible plugin folder duplication](https://github.com/4drian3d/EpicGuard/commit/3a976ce7568088dcbb6a05a5399e56165b8c56fc)
- Full Changelog**: https://github.com/4drian3d/EpicGuard/compare/7.4.1...7.5.0
- [fix:](https://github.com/4drian3d/EpicGuard/commit/eef4ed1a74f662cc1924bfca9662bb03b408f3b6) [fixed](https://github.com/4drian3d/EpicGuard/commit/eef4ed1a74f662cc1924bfca9662bb03b408f3b6) https://github.com/4drian3d/EpicGuard/issues/41
- [perf: cache platform slf4j logger](https://github.com/4drian3d/EpicGuard/commit/91c19a83edcdce46e42278619ae37785b4af6a81)
- [perf(velocity): improved performance of event registration/execution](https://github.com/4drian3d/EpicGuard/commit/9df53b56302aec5f39bb100778ae4035caa100ec)
- [misc: Improved Velocity listener interface registration](https://github.com/4drian3d/EpicGuard/commit/56443d205375feed1087de8ef9f40cdfe6e9b5eb)
- [feat(paper): Improved listeners registration performance](https://github.com/4drian3d/EpicGuard/commit/89631803515354ecf010c603426c927c68eebad4)
- [fix: Fixed attack mode activation spam message](https://github.com/4drian3d/EpicGuard/commit/19435ac06bae4060b4076267545cc021c949a841)
- [fix: Added Velocity runtime relocation](https://github.com/4drian3d/EpicGuard/commit/8f3a2097d6a9885a8a08a51dd4b7baa874ecc37c)
- [feat: Reduced jar file size by downloading geoip2 at runtime](https://github.com/4drian3d/EpicGuard/commit/c0a9049b85b3e5706bd649533902d6b0f66d20de)
Full Changelog:
https://github.com/4drian3d/EpicGuard/compare/7.4.0...7.4.1
- [fix:](https://github.com/4drian3d/EpicGuard/commit/eef4ed1a74f662cc1924bfca9662bb03b408f3b6) [fixed](https://github.com/4drian3d/EpicGuard/commit/eef4ed1a74f662cc1924bfca9662bb03b408f3b6) https://github.com/4drian3d/EpicGuard/issues/41
- [perf: cache platform slf4j logger](https://github.com/4drian3d/EpicGuard/commit/91c19a83edcdce46e42278619ae37785b4af6a81)
- [perf(velocity): improved performance of event registration/execution](https://github.com/4drian3d/EpicGuard/commit/9df53b56302aec5f39bb100778ae4035caa100ec)
- [misc: Improved Velocity listener interface registration](https://github.com/4drian3d/EpicGuard/commit/56443d205375feed1087de8ef9f40cdfe6e9b5eb)
- [feat(paper): Improved listeners registration performance](https://github.com/4drian3d/EpicGuard/commit/89631803515354ecf010c603426c927c68eebad4)
- [fix: Fixed attack mode activation spam message](https://github.com/4drian3d/EpicGuard/commit/19435ac06bae4060b4076267545cc021c949a841)
- [fix: Added Velocity runtime relocation](https://github.com/4drian3d/EpicGuard/commit/8f3a2097d6a9885a8a08a51dd4b7baa874ecc37c)
- [feat: Reduced jar file size by downloading geoip2 at runtime](https://github.com/4drian3d/EpicGuard/commit/c0a9049b85b3e5706bd649533902d6b0f66d20de)
Full Changelog:
https://github.com/4drian3d/EpicGuard/compare/7.4.0...7.4.1
- [fix:](https://github.com/4drian3d/EpicGuard/commit/eef4ed1a74f662cc1924bfca9662bb03b408f3b6) [fixed](https://github.com/4drian3d/EpicGuard/commit/eef4ed1a74f662cc1924bfca9662bb03b408f3b6) https://github.com/4drian3d/EpicGuard/issues/41
- [perf: cache platform slf4j logger](https://github.com/4drian3d/EpicGuard/commit/91c19a83edcdce46e42278619ae37785b4af6a81)
- [perf(velocity): improved performance of event registration/execution](https://github.com/4drian3d/EpicGuard/commit/9df53b56302aec5f39bb100778ae4035caa100ec)
- [misc: Improved Velocity listener interface registration](https://github.com/4drian3d/EpicGuard/commit/56443d205375feed1087de8ef9f40cdfe6e9b5eb)
- [feat(paper): Improved listeners registration performance](https://github.com/4drian3d/EpicGuard/commit/89631803515354ecf010c603426c927c68eebad4)
- [fix: Fixed attack mode activation spam message](https://github.com/4drian3d/EpicGuard/commit/19435ac06bae4060b4076267545cc021c949a841)
- [fix: Added Velocity runtime relocation](https://github.com/4drian3d/EpicGuard/commit/8f3a2097d6a9885a8a08a51dd4b7baa874ecc37c)
- [feat: Reduced jar file size by downloading geoip2 at runtime](https://github.com/4drian3d/EpicGuard/commit/c0a9049b85b3e5706bd649533902d6b0f66d20de)
Full Changelog:
https://github.com/4drian3d/EpicGuard/compare/7.4.0...7.4.1
