VI: LƯU Ý: PLUGIN NÀY ĐƯỢC VIẾT Ở NGÔN NGỮ TIẾNG VIỆT. NÊN RẤT XIN LỖI NHỮNG NGƯỜI KHÔNG BIẾT TIẾNG VIỆT, CÓ THỂ TÔI SẼ THÊM PHIÊN BẢN TIẾNG ANH (HOẶC LÀ KHÔNG NẾU TÔI LƯỜI)
ENG: 注意:此插件使用越南语编写。因此,对于不懂越南语的用户,我深表歉意。我可能会添加英文版(如果我懒得做就算了)。
本插件提供了解决方案,通过阻止非白名单玩家获得 OP 状态或敏感权限(如 *、essentials.* 等),从而降低你的服务器遭受“强制 OP”攻击的风险。
主要功能:
-
检查 OP 状态和敏感权限(例如 *、luckperms.* 等)(可在 config.yml 中自定义配置)
-
自动惩罚那些不在白名单上但拥有 OP 状态或敏感权限的玩家——几乎即时执行——使用在 config.yml 中可自定义的命令(延迟时间也可在 config.yml 中自定义配置)
-
配置文件重载命令 (/cglreloadconfig) 仅对列在白名单中的玩家开放
-
允许禁用服务器的 /op 命令(可在 config.yml 中切换开关)
-
阻止非白名单玩家切换到创造模式。如果他们加入服务器前已经以某种方式拥有创造模式,他们进入服务器时会立即被切换回生存模式(可在配置中切换开关。注意:如果你是从 1.0 版本升级且此功能不起作用,请在你的配置文件中添加行 "block_gamemode_creative: true" 并重启服务器!)
-
当 OP 玩家离开服务器时,自动执行 "logout_actions" 部分中预配置的命令(防止未经授权的后台管理账户被攻破)。
-
通过在玩家加入服务器时立即验证玩家的 UUID 来防止 UUID 伪造(仅适用于 online-mode=false 的服务器;可在配置中切换开关)。
-
防止未经授权的禁用:如果该插件被其他插件(如 PlugMan 或能够禁用任意插件的后门程序)未经授权地禁用,它将立即关闭服务器(可在 config.yml 中配置)。
使用方法:
- 下载插件。
- 将插件放入你的
plugins 文件夹。
- 重启服务器(不要使用像 PlugMan 这样的插件管理工具或其他非完整服务器重启的方法来加载插件,否则会导致错误。如果在
config.yml 中将 stop_server 设置为 true,服务器会立即停止!)。
- 暂时不要加入服务器;编辑
CloudGuardLite/config.yml 来自定义玩家列表、敏感权限、惩罚命令等。
- 重启服务器
免责声明:
如果你安装了这个插件,但你的服务器仍然通过其他某些方法遭受了“强制 OP”攻击,我将不承担任何责任。后门和利用漏洞多种多样,每种机制都不同,单靠一个插件完全防止它们极其困难。最终,你自己的警惕性才是最好的防线。请停止盲目从未知来源安装插件以最小化风险!
由于这是我的第一个插件,如果出现问题,请通过 Discord (ftl2nd) 联系我!感谢你使用我的插件!
VI: LƯU Ý: PLUGIN NÀY ĐƯỢC VIẾT Ở NGÔN NGỮ TIẾNG VIỆT. NÊN RẤT XIN LỖI NHỮNG NGƯỜI KHÔNG BIẾT TIẾNG VIỆT, CÓ THỂ TÔI SẼ THÊM PHIÊN BẢN TIẾNG ANH (HOẶC LÀ KHÔNG NẾU TÔI LƯỜI)
ENG: NOTE: THIS PLUGIN IS WRITTEN IN VIETNAMESE. SO I'M VERY SORRY FOR THOSE WHO DO NOT KNOW VIETNAMESE, MAYBE I WILL ADD AN ENGLISH VERSION (OR NOT IF I'M LAZY)
This plugin offers a solution to minimize the risk of your server falling victim to "Force OP" attacks by preventing players not on the allowlist from obtaining OP status or sensitive permissions (such as *, essentials.*, etc.).
KEY FEATURES:
-
Checks for OP status and sensitive permissions (e.g., , luckperms., ...) (Customizable in config.yml)
-
Automatically punishes players who are not on the whitelist but possess OP status or sensitive permissions—almost instantly—using commands customizable in config.yml (Delay is also customizable in config.yml)
-
The config reload command (/cglreloadconfig) is restricted to players listed in the whitelist
-
Allows disabling the server's /op command (Toggleable in config.yml)
-
Blocks players not on the whitelist from switching to Creative mode. If they somehow already possess Creative mode before joining the server, their mode will be switched to Survival immediately upon entry (Toggleable in config. NOTE: If you are upgrading from version 1.0 and this feature isn't working, please add the line "block_gamemode_creative: true" to your config and restart the server!)
-
Automatically executes pre-configured commands from the "logout_actions" section when an OP player leaves the server (prevents unauthorized administrative account compromise).
-
Prevents UUID spoofing by verifying the player's UUID immediately upon joining the server (applies only to servers with online-mode=false; toggleable in the config).
-
Protects against unauthorized disabling: If the plugin is disabled without authorization by another plugin (such as PlugMan or backdoors capable of disabling arbitrary plugins), it will immediately shut down the server (configurable in config.yml).
USAGE:
- Download the plugin.
- Place the plugin in your
plugins folder.
- Restart the server (Do not use plugin management tools like PlugMan or any method other than a full server restart to load the plugin, as this will cause errors. If
stop_server is set to true in config.yml, the server will stop immediately!).
- Do not join the server yet; edit
CloudGuardLite/config.yml to customize the player list, sensitive permissions, punishment commands, etc.
- Restart the server
DISCLAIMER:
I will not be held responsible if you install this plugin but your server still falls victim to a "Force OP" attack via some other method. Backdoors and exploits vary widely, each operating through different mechanisms, making it extremely difficult to prevent them entirely with a single plugin. Ultimately, your own vigilance remains the best line of defense. Please stop indiscriminately installing plugins from unknown sources to minimize risk!
As this is my first plugin, please contact me via Discord (ftl2nd) if any issues arise!Thank you for using my plugin!
评论 0
登录后参与评分
还没有评论,来抢沙发吧