
Protectcord
Protectcord is an anti VPN/Proxy plugin it uses an advanced API to check if an IPv4/IPv6 is a VPN or Proxy!
2.8K
17
Список изменений
[v1.1.8] - 2026-01-21
Version: 1.1.8 Release Type: Reliability Update Release Date: 2026-01-21
Make sure to delete your config.yml and regenerate it by restarting the server!!!
Features Added
- API Retry Logic with Exponential Backoff - Automatic retry for failed API requests due to network issues
- Retries on
SocketTimeoutExceptionandIOException(network errors) - Does NOT retry on HTTP errors (4xx/5xx) - those are intentional
- Webhook update! Lots more information! More configuration! responses
- Configurable retry attempts (1-5, default: 3)
- Exponential backoff with configurable delays
- Logs retry attempts for visibility
- Retries on
Configuration
New api-retry section added to config files:
YAML (Paper, Spigot, Folia, BungeeCord):
api-retry:
max-attempts: 3 # Maximum retry attempts (1-5)
initial-delay: 1000 # Initial delay before first retry (ms)
max-delay: 5000 # Maximum delay between retries (ms)
multiplier: 2.0 # Exponential backoff multiplier
TOML (Velocity):
[api-retry]
max-attempts = 3
initial-delay = 1000
max-delay = 5000
multiplier = 2.0
Example Behavior
With default settings (3 attempts, 1s initial delay, 2x multiplier):
- Attempt 1 fails → Wait 1000ms → Retry
- Attempt 2 fails → Wait 2000ms → Retry
- Attempt 3 fails → Log final error, allow player join (fail-open)
Log Output Example
[WARN] ProtectCord API request failed (attempt 1/3): Read timed out. Retrying in 1000ms...
[WARN] ProtectCord API request failed (attempt 2/3): Read timed out. Retrying in 2000ms...
[ERROR] Error checking IP with ProtectCord API after 3 attempts: Read timed out
Technical Details
- Uses exponential backoff algorithm to prevent overwhelming the API
- Maintains fail-open behavior - players are allowed to join if all retries fail
- Thread-safe implementation with proper interrupt handling
- Validation ensures config values are within acceptable ranges
All Platforms Updated:
- Paper
- Spigot
- Folia
- BungeeCord
- Velocity
- Forge
Файлы
protectcord-paper-1.1.8.jar(104.72 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
1.1.8
Загрузчики
Paper
Версии игры
1.8.8–1.21.11
Загрузок
131
Дата публикации
2 мес. назад
