Universal Anti-VPN
Spigot 版 Universal Anti-VPN,支持多种后端并具备自动故障转移管理功能。
支持的后端
目前所有后端均支持 API 密钥,你可以在本插件中使用这些密钥来超出免费查询次数的限制。这些 API 密钥应分别在各自平台上购买,并可在本插件的 config.yml 中进行设置。API 密钥相关问题或误报应由相应后端提供商处理,而非本插件。
后端概览
| 后端 |
免费查询次数 |
可使用 API 获取更多查询次数 |
| KauriVPN |
20000/月 |
✔️ |
| Proxycheck |
1000/天 |
✔️ |
插件设置
安装插件并重启服务器后,你将找到一个 config.yml 文件。在这里你可以找到多个可配置的设置,但无需调整任何设置即可正常运行。这意味着 即使不进行任何配置,该插件也能正常工作。
下表列出了所有可配置的设置。请注意,此表省略了用于配置 H2 或 MySQL 数据库的值。如果你不熟悉相关操作,请保持原样以使用 H2 数据库,它无需配置即可工作。我们还省略了 API 部分,在该部分你可以启用/禁用 API 并在需要时输入 API 密钥。
| 部分 |
子部分 |
设置 |
允许的值 |
备注 |
| Settings |
VPN |
alert |
true 或 false |
是否应在玩家尝试通过 VPN 加入时发送警报 |
| Settings |
VPN |
kick |
true 或 false |
是否应将尝试通过 VPN 加入的玩家踢出服务器 |
| Settings |
cache |
enabled |
true 或 false |
是否应缓存值(强烈推荐) |
| Settings |
cache |
type |
"H2" 或 "mysql" |
要使用的缓存类型 |
| Settings |
cache |
cleanup_interval |
任意数字 |
插件检查无效缓存记录的频率(分钟) |
| Fallback-protocol |
|
primary |
任意支持的后端 |
主用后端 |
| Fallback-protocol |
|
fallback_protocol |
支持的后端数组 |
故障转移系统使用的顺序 |
为了更深入地了解 fallback_protocol 设置;此设置使用一个支持的后端数组。这意味着如果你想例如将 proxycheck 用作备用 API,则应为 ["proxycheck"]。如果你想先尝试 proxycheck,然后再尝试 kaurivpn,则应为 ["proxycheck", "kaurivpn"]。请注意,此故障转移协议仅在 primary 后端失败时使用。
命令与权限
| 命令 |
权限 |
备注 |
| /antivpn whitelist <IP> |
antivpn.whitelist |
将 IP 加入白名单 |
| /antivpn block <IP> |
antivpn.block |
阻止该 IP |
支持
点击此处加入我们的 Discord 获取支持。
Universal Anti-VPN
Spigot Universal Anti-VPN with multiple backends and automatic fallover management.
Supported backends
Currently all backends support API keys that you can use in this plugin to exceed the amount of free queries. These API keys should be purchased on their respective platforms and can be set in the config.yml of this plugin. Issues with API keys or false-positives should be handled by the respective backend provider and not this plugin.
Backend overview
| Backend |
Free queries |
can use API for more queries |
| KauriVPN |
20000/month |
✔️ |
| Proxycheck |
1000/day |
✔️ |
Plugin setup
After installing the plugin and having restarted your server, you will find a config.yml file. Here you can find multiple configurable settings but none are required to be adjusted to work. This means the plugin can function properly without any configuration whatsoever.
Below you will find a table of all configurable settings. Please note this omits the values for configuring your H2 or mysql database. If you are not familiar with this, just keep as is to use an H2 database which will work without configuration. We also omited the API's section where you can enable/disable API's and enter API-keys if wanted.
| Section |
Subsection |
Setting |
Allowed values |
Notes |
| Settings |
VPN |
alert |
true or false |
Whether or not an alert should be sent upon a player attempting to join with a VPN |
| Settings |
VPN |
kick |
true or false |
Whether or not a player attempting to join with a VPN should be kicked from the server |
| Settings |
cache |
enabled |
true or false |
Whether or not we should cache values (highly recommended) |
| Settings |
cache |
type |
"H2" or "mysql" |
What cache type to use |
| Settings |
cache |
cleanup_interval |
any number |
How often the plugin checks for invalidated cached records in minutes |
| Fallback-protocol |
|
primary |
any supported backend |
What the primary backend is |
| Fallback-protocol |
|
fallback_protocol |
an array of supported backend(s) |
What order the fallback system uses. |
To go a bit more in-depth of the fallback_protocol setting; this setting uses an array of supported backend(s). This means if you want to, for example, use proxycheck as fallback API, this would be ["proxycheck]". If you wanted to first attempt proxycheck and after that kaurivpn, this would be ["proxycheck", "kaurivpn"]. Please note this fallback-protocol is only used when the primary backend fails.
Commands & Permissions
| Command |
Permission |
Note |
| /antivpn whitelist <IP> |
antivpn.whitelist |
Whitelists the IP |
| /antivpn block <IP> |
antivpn.block |
Blocks the IP |
Support
Join our discord for support here.
评论 0
登录后参与评分
还没有评论,来抢沙发吧