A Minecraft plugin that implements a tarpit mechanism for non-whitelisted players. Instead of immediately rejecting unauthorized connection attempts, it delays the response to help mitigate potential automated attacks.
- Configurable connection delay for non-whitelisted players
- Works with Minecraft's built-in whitelist system
- Helps protect against automated connection attempts
- Paper/Spigot 1.13+
- Java 17 or higher
- Whitelist enabled on the server
- Download the latest release from the releases page
- Place the
TarpitPlugin.jarin your server'spluginsfolder - Restart your server
- Enable whitelist on your server using
/whitelist on
The plugin creates a config.yml file in the plugins/TarpitPlugin folder:
# TarpitPlugin Configuration
tarpit:
# Delay in seconds before rejecting non-whitelisted players
delay: 30
# Message to show to non-whitelisted players
message: "§c§lAccess Denied\n§r§cYou are not whitelisted on this server\n§eContact an administrator to get access"# Clone the repository
git clone https://github.com/nixietab/TarPit.git
# Change to project directory
cd TarpitPlugin
# Build the plugin
./gradlew shadowJarThe compiled plugin will be in build/libs/TarpitPlugin.jar
If whitelist is enabled, the plugin will work perfectly on start
If you encounter any issues or have questions, please:
- Check the issues page
- Create a new issue if your problem isn't already reported