简介
这是一个仅由三个 Java 文件(核心事件)组成的小型模组,旨在通过修改配置文件来防止玩家使用命令事件。它专为不希望玩家作弊的整合包作者设计。
安装此模组后,被禁用的命令将无法使用,无论玩家处于何种游戏模式,即使是服务器 OP 玩家也无法使用。但是,如果安装在服务器上,仍可以通过命令控制台使用被禁用的命令。
理论上,它支持版本 1.13.x 至 1.21.x。不支持 NeoForge
使用方法
进入游戏后,config 文件夹中会自动生成一个名为 "DUC.txt" 的文件,如下图所示:
在文件中写下想要禁用的命令,可以包含多个命令,无需添加 "/"。例如:
tp
summon minecraft:zombie
gamemode creative
提示:每个指令换行即可,还可以添加子指令,例如 "gamemode creative",这不会禁用其他子指令如 "gamemode survival"
重启客户端或服务器,或使用 /reload 命令使更改生效。
附加信息
如果你有一个大型服务器,可以使用 LuckPerms 代替。此模组不适合服务器使用。如果你不想单独禁用命令,可以使用 "No Cheat" 模组,它可以禁用所有命令。
整合包作者可以将模组的显示名称改为 "[Dependency]xxx (请勿删除)"。
Introduction
This is a small mod consisting of just three Java files (core events) designed to prevent players from using command events by modifying the configuration file. It is intended for use by integrated pack authors who do not want players to cheat.
Once this mod is installed, disabled commands cannot be used regardless of the player's game mode, and even server OP players cannot use them. However, if installed on a server, disabled commands can still be used through the command console.
Theoretically, it supports versions 1.13.x to 1.21.x. NeoForge is not supported
Usage
After entering the game, a file called "DUC.txt" will be automatically generated in the config folder, as shown in the image below:
Write down the command you want to disable in the file, which can be multiple commands without adding "/". For example:
tp
summon minecraft:zombie
gamemode creative
Tip: Line breaks are sufficient for each instruction, and sub instructions can be added, such as "gamemode creative", which will not disable other sub instructions such as "gamemode survival"
Restart your client or server, or use the/reload command to take effect.
Additional Information
If you have a large server, you can use LuckPerms instead. This mod is not suitable for server use. If you do not want to individually disable commands, you can use the "No Cheat" mod, which allows disabling all commands.
ModPack authors can change the mod's display name to "[Dependency]xxx (Do Not Delete)".
评论 0
登录后参与评分
还没有评论,来抢沙发吧