Advanced Synkai IP 限制器
一个功能强大的 Velocity 代理插件,可防止多个账户使用同一 IP 地址加入你的服务器。包含账户绑定、小号检测以及 Discord Webhook 通知功能。
功能特性
- ? 基于 IP 的玩家限制 - 限制每个 IP 地址的并发连接数
- ? 账户绑定 - 将玩家账户与其 IP 地址绑定
- ? 小号检测 - 自动检测并阻止小号登录
- ? 基于权限的绕过 - 允许管理员(ops)和 VIP 用户绕过限制
- ? 自定义消息 - 支持颜色代码(&c, &4 等)
- ? Discord Webhook 支持 - 实时获取违规通知
- ⪯ IP 白名单 - 配置受信任的 IP 及其自定义限制
- ⏰ 绑定过期 - 设置绑定持续时间(永不、1 周、1 个月)
- ? 调试模式 - 增强的日志记录以辅助故障排除
安装方法
- 从构建目录下载最新编译的 JAR 文件
- 将其放入 Velocity 代理的
plugins/ 目录中
- 重启 Velocity 代理服务器
- 配置文件将在
plugins/IPLimit/config.yml 自动生成
配置
编辑 plugins/IPLimit/config.yml 以自定义插件:
# IP 限制配置
# 每个 IP 允许的最大玩家数(这限制了有效账户的并发会话数量)
max-players-per-ip: 1
# 用于绕过检查的权限(管理员通常拥有此权限)
bypass-permission: "iplimit.bypass"
# 因 IP 限制或绑定被踢出时显示的消息(支持如 &c, &4 的颜色代码)
kick-message: "&c你不允许使用该 IP 加入!每个 IP 仅限 1 个账户。"
# 因使用小号被踢出时显示的消息
alt-kick-message: "&c不允许使用小号!该 IP 已绑定到其他账户。"
# 绑定过期策略(never, 1w, 1m)
binding-expiration: "never"
# Discord Webhook 设置(可选)
discord-webhook-enabled: false
discord-webhook-url: "webhookurl here"
discord-webhook-username: "Advanced Synkai IP limiter"
discord-webhook-embed-color: 16711680
# 白名单 IP(这些 IP 将绕过所有检查)
whitelisted-ips:
- "192.168.1.1"
- "10.0.0.1"
# 白名单 IP 的可选限制(覆盖正常最大值)
whitelisted-ip-limits:
"127.0.0.1": 3
# 调试模式(在控制台中打印更多信息)
debug: false
配置选项
| 选项 |
类型 |
描述 |
默认值 |
max-players-per-ip |
Integer |
每个 IP 允许的最大玩家数 |
1 |
bypass-permission |
String |
绕过检查的权限节点 |
iplimit.bypass |
kick-message |
String |
玩家达到 IP 限制时的踢出消息 |
可自定义 |
alt-kick-message |
String |
小号账号的踢出消息 |
可自定义 |
binding-expiration |
String |
绑定持续时间:never、1w、1m |
never |
discord-webhook-enabled |
Boolean |
启用 Discord 通知 |
false |
discord-webhook-url |
String |
Discord Webhook URL |
webhookurl here |
discord-webhook-username |
String |
Webhook 使用的机器人用户名 |
Advanced Synkai IP limiter |
discord-webhook-embed-color |
Integer |
嵌入颜色(RGB 十进制) |
16711680 |
whitelisted-ips |
List |
绕过所有检查的 IP 地址列表 |
- |
whitelisted-ip-limits |
Map |
特定 IP 的自定义限制 |
- |
debug |
Boolean |
启用调试控制台输出 |
false |
权限
| 权限 |
描述 |
默认值 |
iplimit.bypass |
绕过 IP 限制和绑定检查 |
Ops |
iplimit.admin |
访问管理命令 |
Ops |
命令
/iplimit [subcommand]
子命令
info - 显示玩家 IP 绑定信息
reload - 从磁盘重新加载配置
unbind <player> - 移除玩家的 IP 绑定
whitelist <ip> - 将 IP 加入白名单
debug [on|off] - 切换调试模式
Discord Webhook 设置
要获取 IP 违规的实时通知:
- 在服务器设置中创建一个 Discord webhook
- 复制 webhook URL
- 编辑
config.yml:
discord-webhook-enabled: true
discord-webhook-url: "https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN"
- 根据需要自定义 webhook 用户名和嵌入颜色
- 使用
/iplimit reload 重新加载插件
工作原理
- 首次连接 - 玩家带着其 IP 加入,账户与该 IP 绑定
- 相同 IP,相同账户 - ✅ 允许(再次登录)
- 相同 IP,不同账户 - ❌ 踢出(检测到小号)
- 不同 IP,相同账户 - ⚠️ 允许(新 IP,重新绑定)
- 白名单 IP - ✅ 始终允许
- 绕过权限 - ✅ 管理员和 VIP 可绕过所有检查
功能详解
账户绑定
一旦玩家加入,其账户将与 IP 地址绑定。这可以防止其他账户使用相同的 IP。
绑定过期时间
配置绑定保持活跃的时间:
never - 绑定永久有效
1w - 绑定在一周后过期
1m - 绑定在一个月后过期
IP 白名单
将受信任的 IP(代理、测试环境、企业网络)加入白名单以绕过所有检查:
whitelisted-ips:
- "192.168.1.1"
- "10.0.0.1"
为白名单中的 IP 设置自定义限制:
whitelisted-ip-limits:
"127.0.0.1": 5 # 允许来自本机的 5 名玩家
调试模式
启用调试日志以排查问题:
debug: true
查看控制台获取以下方面的详细信息:
- 玩家连接
- IP 绑定
- 权限检查
- Webhook 请求
故障排除
玩家被意外踢出
- 检查玩家的 IP:
/iplimit info <player>
- 如有需要,验证白名单中的 IP
- 检查玩家是否具有
iplimit.bypass 权限
- 启用调试模式以获取更多详情
Discord Webhook 无法工作
- 验证 Webhook URL 是否正确
- 确认已设置
discord-webhook-enabled: true
- 确保该 Webhook 未被从 Discord 删除
- 在启用调试的情况下,检查控制台的错误消息
配置未更新
- 使用
/iplimit reload 重新加载配置
- 确保 YAML 格式有效
- 检查
config.yml 的文件权限
Advanced Synkai IP Limiter
A powerful Velocity proxy plugin that prevents multiple accounts from joining your server using the same IP address. Includes account binding, alt-account detection, and Discord webhook notifications.
Features
- ? IP-Based Player Limiting - Restrict concurrent connections per IP address
- ? Account Binding - Bind player accounts to their IP address
- ? Alt-Account Detection - Automatically detect and prevent alt accounts
- ? Permission-Based Bypass - Allow ops and VIPs to bypass restrictions
- ? Customizable Messages - Color code support (&c, &4, etc.)
- ? Discord Webhook Support - Get real-time notifications of violations
- ⚪ IP Whitelist - Configure trusted IPs with custom limits
- ⏰ Binding Expiration - Set binding duration (never, 1 week, 1 month)
- ? Debug Mode - Enhanced logging for troubleshooting
Installation
- Download the latest compiled JAR file from the build directory
- Place it in your Velocity proxy's
plugins/ directory
- Restart your Velocity proxy server
- Configuration file will be auto-generated at
plugins/IPLimit/config.yml
Configuration
Edit plugins/IPLimit/config.yml to customize the plugin:
# IP Limit Configuration
# Max players allowed per IP (This limits concurrent sessions for the valid account)
max-players-per-ip: 1
# Permission to bypass checks (Ops usually have this)
bypass-permission: "iplimit.bypass"
# Message shown when kicked due to IP limit/Binding (Supports Color Codes like &c, &4)
kick-message: "&cYou are not allowed to join with this IP! 1 Account per IP limit."
# Message shown when kicked for using an Alt account
alt-kick-message: "&cAlt accounts are not allowed! This IP is bound to another account."
# Binding expiration policy (never, 1w, 1m)
binding-expiration: "never"
# Discord webhook settings (optional)
discord-webhook-enabled: false
discord-webhook-url: "webhookurl here"
discord-webhook-username: "Advanced Synkai IP limiter"
discord-webhook-embed-color: 16711680
# Whitelisted IPs (These IPs bypass all checks)
whitelisted-ips:
- "192.168.1.1"
- "10.0.0.1"
# Optional limits for whitelisted IPs (overrides normal max)
whitelisted-ip-limits:
"127.0.0.1": 3
# Debug mode (prints more info to console)
debug: false
Configuration Options
| Option |
Type |
Description |
Default |
max-players-per-ip |
Integer |
Maximum players allowed per IP |
1 |
bypass-permission |
String |
Permission node to bypass checks |
iplimit.bypass |
kick-message |
String |
Message when player hit IP limit |
Customizable |
alt-kick-message |
String |
Message for alt accounts |
Customizable |
binding-expiration |
String |
Binding duration: never, 1w, 1m |
never |
discord-webhook-enabled |
Boolean |
Enable Discord notifications |
false |
discord-webhook-url |
String |
Discord webhook URL |
webhookurl here |
discord-webhook-username |
String |
Bot username for webhooks |
Advanced Synkai IP limiter |
discord-webhook-embed-color |
Integer |
Embed color (RGB decimal) |
16711680 |
whitelisted-ips |
List |
IPs that bypass all checks |
- |
whitelisted-ip-limits |
Map |
Custom limits for specific IPs |
- |
debug |
Boolean |
Enable debug console output |
false |
Permissions
| Permission |
Description |
Default |
iplimit.bypass |
Bypass IP limit and binding checks |
Ops |
iplimit.admin |
Access admin commands |
Ops |
Commands
/iplimit [subcommand]
Subcommands
info - Show player IP binding information
reload - Reload configuration from disk
unbind <player> - Remove IP binding for a player
whitelist <ip> - Add IP to whitelist
debug [on|off] - Toggle debug mode
Discord Webhook Setup
To get real-time notifications of IP violations:
- Create a Discord webhook in your server settings
- Copy the webhook URL
- Edit
config.yml:
discord-webhook-enabled: true
discord-webhook-url: "https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN"
- Customize the webhook username and embed color as desired
- Reload the plugin with
/iplimit reload
How It Works
- First Connection - Player joins with their IP, account is bound to that IP
- Same IP, Same Account - ✅ Allowed (logged in again)
- Same IP, Different Account - ❌ Kicked (alt account detected)
- Different IP, Same Account - ⚠️ Allowed (new IP, rebinding)
- Whitelisted IP - ✅ Always allowed
- Bypass Permission - ✅ Ops and VIPs bypass all checks
Features in Detail
Account Binding
Once a player joins, their account is bound to their IP address. This prevents other accounts from using the same IP.
Binding Expiration
Configure how long bindings remain active:
never - Bindings are permanent
1w - Bindings expire after 1 week
1m - Bindings expire after 1 month
IP Whitelist
Add trusted IPs (proxy, testing, corporate networks) to bypass all checks:
whitelisted-ips:
- "192.168.1.1"
- "10.0.0.1"
Set custom limits for whitelisted IPs:
whitelisted-ip-limits:
"127.0.0.1": 5 # Allow 5 players from localhost
Debug Mode
Enable debug logging to troubleshoot issues:
debug: true
Check console for detailed information about:
- Player connections
- IP bindings
- Permission checks
- Webhook requests
Troubleshooting
Players Getting Kicked Unexpectedly
- Check the player's IP:
/iplimit info <player>
- Verify whitelisted IPs if needed
- Check if player has
iplimit.bypass permission
- Enable debug mode for more info
Discord Webhook Not Working
- Verify the webhook URL is correct
- Check
discord-webhook-enabled: true
- Ensure the webhook hasn't been deleted from Discord
- Check console for error messages with debug enabled
Config Not Updating
- Use
/iplimit reload to reload configuration
- Ensure YAML formatting is valid
- Check file permissions on config.yml
评论 0
登录后参与评分
还没有评论,来抢沙发吧