功能:
- IP 登錄限制:設定每個 IP 地址最多允許的帳號登錄數量,防止單一 IP 過多帳號同時在線。
- 代理和 VPN 檢測:通過 IPHub 服務檢測玩家的 IP 是否來自代理或 VPN,阻止可疑的代理或 VPN 使用者登錄,保障伺服器安全。
- 自定義訊息:提供訊息配置文件,可自定義各類提示訊息,提升玩家的互動體驗。
使用理由:
- 增強伺服器安全性:有效防止惡意使用代理或 VPN 登錄,減少被攻擊或濫用的風險。
- 提升管理效率:簡單的配置和自動化的檢測機制,讓管理員更輕鬆地維護伺服器秩序。
- 提高玩家體驗:通過自定義訊息功能,為玩家提供友好的登錄提示和互動訊息。
安裝與配置指南:
- 下載與安裝插件
- 將編譯好的插件 jar 文件放入伺服器的 plugins 目錄中。
- 獲取IPHub API密鑰
- 訪問 IPHub 官網,點擊右上角的「註冊」按鈕。
- 完成註冊流程並登錄你的帳戶。
- 在「API Keys」頁面,你可以看到一個默認的API密鑰。如果沒有,點擊「Create new API Key」按鈕來生成一個新的API密鑰。
- 複製該API密鑰,將其放入 config.yml 文件中的 api-key 欄位。
- 配置插件
- 打開 config.yml 文件,設置最大 IP 登錄數量和 API 密鑰:
yaml
max-accounts-per-ip: 2
api-key: "your_api_key" # 替換為你的實際API密鑰
- 打開 message.yml 文件,根據需要自定義提示訊息:
yaml
messages:
kick-message: "該IP已達到最大登入數量限制"
login-success: "歡迎登入!"
logout-message: "您已成功登出!"
proxy-kick-message: "禁止使用代理或VPN登入"
- 重啟伺服器
- 監控與維護
- 定期檢查伺服器日誌,觀察插件的運行情況,確保所有功能正常工作。
- 根據玩家反饋,適時調整配置文件中的參數,提供最佳的使用體驗。
總結:
這款插件將有效提升您的伺服器安全性,阻止不良玩家濫用代理或 VPN 登錄,同時提供靈活的自定義訊息功能,改善玩家互動體驗。立即安裝,讓您的伺服器更安全、更高效!
Plugin Name: IP Login Limiter and Proxy Detection Plugin
Overview:
- IP Login Limiting: Configure the maximum number of accounts that can log in from a single IP address, preventing excessive simultaneous logins from the same IP.
- Proxy and VPN Detection: Utilize the IPHub service to detect if a player's IP is from a proxy or VPN, blocking suspicious proxy or VPN users from logging in, ensuring server security.
- Custom Messages: Provide a message configuration file that allows customizing various prompt messages, enhancing player interaction experience.
Reasons to Use:
- Enhance Server Security: Effectively prevent malicious use of proxies or VPNs, reducing the risk of attacks or abuse.
- Increase Management Efficiency: Simple configuration and automated detection mechanisms make it easier for administrators to maintain server order.
- Improve Player Experience: Through the custom message feature, provide players with friendly login prompts and interactive messages.
Installation and Configuration Guide:
- Download and Install the Plugin
- Place the compiled plugin jar file into the plugins directory of your server.
- Obtain IPHub API Key
- Visit the IPHub website, and click on the "Sign Up" button at the top right.
- Complete the registration process and log into your account.
- On the "API Keys" page, you will see a default API key. If not, click the "Create new API Key" button to generate a new API key.
- Copy the API key and place it in the api-key field in the config.yml file.
- Configure the Plugin
- Open the config.yml file, set the maximum number of IP logins and the API key:
yaml
max-accounts-per-ip: 2
api-key: "your_api_key" # Replace with your actual API key
- Open the message.yml file and customize the prompt messages as needed:
yaml
messages:
kick-message: "This IP has reached the maximum login limit"
login-success: "Welcome!"
logout-message: "You have successfully logged out!"
proxy-kick-message: "Proxy or VPN usage is not allowed"
- Restart the Server
- Ensure all configurations are correctly set and restart the server to apply the changes.
- Monitor and Maintain
- Regularly check server logs to monitor the plugin's performance and ensure all functionalities are working properly.
- Adjust the parameters in the configuration files based on player feedback to provide the best user experience.
Summary:
This plugin will effectively enhance your server's security, prevent malicious players from abusing proxies or VPNs, and provide a flexible custom message feature to improve player interaction experience. Install it now to make your server safer and more efficient!