插件介绍
放置时自动在密码锁上设置密码
Automatically sets the code on code locks when placed.Allow players to automatically try and unlock locked code locks with their code.
You refers to the player running the command.
The core commands are also available in a guest code version. e.g.
主要用途
主要用于codelock、automation、doors、umod等服务端功能。 本插件由 BlueBeka 发布,当前目录记录版本为 v1.6.0,uMod 累计下载 35,590 次。
适用场景
- 希望扩展原版服务器功能的服主
功能分类
查看 uMod 官方英文简介
Automatically sets the code on code locks when placed
权限节点
autocode.use - Allows use of this plugin.
autocode.try - Allows auto-trying of user auto-code on locked code locks.
autocode.admin - Allows use of admin commands.
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
You refers to the player running the command.
code 1234 - Sets your auto-code to 1234.
code random - Sets your auto-code to a random code.
code remove - Removes your set auto-code (and guest auto-code).
The core commands are also available in a guest code version. e.g.
code guest 5678 - Sets your guest code to 5678.
code quiet - Toggle quiet mode. In this mode less messages will be displayed and your auto-code will be hidden.
code help - Shows a detailed help message.
相关依赖
- No Escape
配置说明
Default configuration:
{ "Commands": { "Use": "code" }, "Options": { "Display Permission Errors": true, "Spam Prevention": { "Attempts": 5, "Enable": true, "Exponential Lock Out Time": true, "Lock Out Reset Factor": 5.0, "Lock Out Time": 5.0, "Window Time": 30.0 } } }
Commands - Change the commands this plugin uses.Use - Used to set the player's code.
OptionsDisplay Permission Errors - If set to false, players won't be notified if they don't have the right permissions to use this plugin.Spam Prevention - Prevent players from changing their code too often to prevent abuse.Enable - Whether spam protection is enabled or not.Attempts - The number of code changes the player can make with in Window Time before being marked as spamming.Window Time - The time frame (in seconds) to count the number of code changes the player has made.Lock Out Time - How long (in seconds) a player will be locked out for. This number should be low if using exponential lock out times.Exponential Lock Out Time - If true, each time the player is locked out, they will be locked out for double the amount of time they were previously locked out for.Lock Out Reset Factor - Determines how long (as a multiples of lock out time) before the player is forgive for all previous lockout offenses (should be greater than 1 - has no effect if not using exponential lock out time).
Use - Used to set the player's code.
Display Permission Errors - If set to false, players won't be notified if they don't have the right permissions to use this plugin.
Spam Prevention - Prevent players from changing their code too often to prevent abuse.Enable - Whether spam protection is enabled or not.Attempts - The number of code changes the player can make with in Window Time before being marked as spamming.Window Time - The time frame (in seconds) to count the number of code changes the player has made.Lock Out Time - How long (in seconds) a player will be locked out for. This number should be low if using exponential lock out times.Exponential Lock Out Time - If true, each time the player is locked out, they will be locked out for double the amount of time they were previously locked out for.Lock Out Reset Factor - Determines how long (as a multiples of lock out time) before the player is forgive for all previous lockout offenses (should be greater than 1 - has no effect if not using exponential lock out time).
Enable - Whether spam protection is enabled or not.
Attempts - The number of code changes the player can make with in Window Time before being marked as spamming.
Window Time - The time frame (in seconds) to count the number of code changes the player has made.
Lock Out Time - How long (in seconds) a player will be locked out for. This number should be low if using exponential lock out times.
Exponential Lock Out Time - If true, each time the player is locked out, they will be locked out for double the amount of time they were previously locked out for.
Lock Out Reset Factor - Determines how long (as a multiples of lock out time) before the player is forgive for all previous lockout offenses (should be greater than 1 - has no effect if not using exponential lock out time).
官方配置示例
{
"Commands": {
"Use": "code"
},
"Options": {
"Display Permission Errors": true,
"Spam Prevention": {
"Attempts": 5,
"Enable": true,
"Exponential Lock Out Time": true,
"Lock Out Reset Factor": 5.0,
"Lock Out Time": 5.0,
"Window Time": 30.0
}
}
}string GetCode(BasePlayer player, bool guest = false);
void SetCode(BasePlayer player, string code, bool guest = false);
void RemoveCode(BasePlayer player, bool guest = false);
bool IsValidCode(string codeString);
string GenerateRandomCode();
void OpenCodeLockUI(BasePlayer player, bool guest = false);
void ResetAllLockOuts();
void ResetLockOut(BasePlayer player);更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。