本文档列出了 lhrp 警察插件的所有命令和权限节点。
| 主命令 | 别名 |
|---|
/police | /mp, /警察 |
/lhrp | /lp, /领航 RP |
/mayor | /mt, /市政府 |
| 权限节点 | 说明 |
|---|
lhrp.police | 核心身份权限,拥有此权限的玩家可被识别为警察并使用警察聊天频道 |
police.addposition | 添加新警察职位的权限 |
police.removeposition | 移除警察职位的权限 |
police.setposition | 设置玩家警察职位的权限 |
police.removepolice | 将玩家从警队中移除的权限 |
police.getposition | 获取玩家警察职位的权限 |
police.listpositions | 列出所有可用警察职位的权限 |
police.warrant | 发布通缉令的权限 |
police.unwarrant | 取消通缉令的权限 |
police.setjail | 设置监狱位置的权限 |
police.setreleaseloc | 设置释放位置的权限 |
police.arrest | 逮捕玩家并送入监狱的权限 |
police.release | 释放监狱中玩家的权限 |
police.handcuff | 使用手铐的权限 |
police.follow | 命令被手铐的玩家跟随的权限 |
police.menu | 打开警察菜单的权限 |
police.reload | 重载插件的权限 |
| 权限节点 | 说明 |
|---|
mayor.use | 使用市长命令的基础权限 |
mayor.money | 查看城市金库余额的权限 |
mayor.add | 向城市金库充值的权限 |
mayor.remove | 从城市金库取款的权限 |
mayor.set | 设置城市金库余额的权限 |
mayor.salary | 管理职位时薪的权限 |
mayor.paysalary | 立即领取工资的权限 |
mayor.info | 查看城市金库详细信息的权限 |
mayor.menu | 打开市长管理菜单的权限 |
mayor.setposition | 设置玩家市政府职位的权限 |
mayor.removeposition | 移除玩家市政府职位的权限 |
mayor.getposition | 获取玩家市政府职位的权限 |
mayor.listpositions | 列出所有市政府职位的权限 |
注意:
- 所有拥有警察职位的玩家都会自动获得
lhrp.police 权限,无论其职位是什么。 - 所有拥有市政府职位的玩家都会自动获得
mayor.use 权限,无论其职位是什么。
| 命令 | 权限 | 说明 | 用法 |
|---|
/lhrp reload | police.reload | 重载插件配置和语言文件 | /lhrp reload |
/领航 RP reload | police.reload | 重载插件配置和语言文件 | /领航 RP reload |
| 命令 | 权限 | 说明 | 用法 |
|---|
/police addposition | police.addposition | 添加一个新的警察职位 | /police addposition <名称> <权限 1> [权限 2...] |
/police removeposition | police.removeposition | 移除一个警察职位 | /police removeposition <名称> |
/police setposition | police.setposition | 设置玩家的警察职位 | /police setposition <玩家> <职位> |
/police getposition | 无 | 获取玩家的警察职位 | /police getposition <玩家> |
/police listpositions | police.listpositions | 列出所有可用的警察职位 | /police listpositions |
/police removepolice | police.removepolice | 将玩家从警队中移除 | /police removepolice <玩家> |
| 命令 | 权限 | 说明 | 用法 |
|---|
/police warrant | police.warrant | 对玩家发布通缉 | /police warrant <玩家> <理由...> |
/police unwarrant | police.unwarrant | 取消玩家的通缉 | /police unwarrant <玩家> |
/police menu warrant | police.menu | 打开通缉信息菜单 | /police menu warrant |
| 命令 | 权限 | 说明 | 用法 |
|---|
/police setjail | police.setjail | 将监狱位置设置为当前位置 | /police setjail |
/police setreleaseloc | police.setreleaseloc | 将释放位置设置为当前位置 | /police setreleaseloc |
/police arrest | police.arrest | 逮捕玩家并将其送入监狱 | /police arrest <玩家> [时间 (分钟)] |
/police release | police.release | 释放监狱中的玩家 | /police release <玩家> |
| 命令 | 权限 | 说明 | 用法 |
|---|
/police handcuff | police.handcuff | 给玩家戴上手铐或解除手铐 | /police handcuff <玩家> |
/police follow | police.follow | 命令被手铐的玩家跟随您 | /police follow <玩家> |
| 命令 | 权限 | 说明 | 用法 |
|---|
/police menu 911 | police.menu | 打开报警内容菜单 | /police menu 911 |
/police help | 无 | 显示帮助信息 | /police help |
/police info | 无 | 查看自己的职位和时薪 | /police info |
/police chat | lhrp.police | 在警察内部频道聊天 | /police chat <消息> |
| 命令 | 权限 | 说明 | 用法 |
|---|
/911 | 无 | 向所有在线警员发送紧急报警 | /911 <报警内容> |
| 命令 | 权限 | 说明 | 用法 |
|---|
/mayor money | mayor.money | 查看城市金库余额 | /mayor money |
/mayor add | mayor.add | 从您的账户充值到城市金库 | /mayor add <金额> |
/mayor remove | mayor.remove | 从城市金库取款到您的账户 | /mayor remove <金额> |
/mayor set | mayor.set | 设置城市金库余额 | /mayor set <金额> |
/mayor info | mayor.info | 查看城市金库详细信息 | /mayor info |
| 命令 | 权限 | 说明 | 用法 |
|---|
/mayor salary | mayor.salary | 查看所有职位时薪列表 | /mayor salary |
/mayor salary <职位> | mayor.salary | 查看指定职位时薪 | /mayor salary <职位> |
/mayor salary <职位> <金额> | mayor.salary | 设置职位时薪 | /mayor salary <职位> <金额> |
/mayor paysalary | mayor.paysalary | 立即领取您的工资 | /mayor paysalary |
| 命令 | 权限 | 说明 | 用法 |
|---|
/mayor setposition | mayor.setposition | 设置玩家的市政府职位 | /mayor setposition <玩家> <职位> |
/mayor removeposition | mayor.removeposition | 移除玩家的市政府职位 | /mayor removeposition <玩家> |
/mayor getposition | 无 | 获取玩家的市政府职位 | /mayor getposition <玩家> |
/mayor listpositions | mayor.listpositions | 列出所有可用的市政府职位 | /mayor listpositions |
| 命令 | 权限 | 说明 | 用法 |
|---|
/mayor menu | mayor.menu | 打开市长管理菜单 | /mayor menu |
/mayor help | 无 | 显示市长命令帮助 | /mayor help |
| 职位 | 权限 | 默认时薪 |
|---|
| 局长 | lhrp.police, police.addposition, police.removeposition, police.setposition, police.warrant, police.arrest, police.menu, police.setjail, police.release, police.listpositions, police.getposition, police.unwarrant, police.handcuff, police.follow, police.removepolice | 100 金币/小时 |
| 副局长 | lhrp.police, police.setposition, police.warrant, police.arrest, police.release, police.handcuff, police.unwarrant, police.menu, police.listpositions, police.getposition, police.follow | 80 金币/小时 |
| 警长 | lhrp.police, police.warrant, police.arrest, police.release, police.handcuff, police.menu, police.listpositions, police.getposition, police.follow | 60 金币/小时 |
| 高级警员 | lhrp.police, police.warrant, police.arrest, police.handcuff, police.menu, police.listpositions, police.getposition, police.follow | 50 金币/小时 |
| 警员 | lhrp.police, police.warrant, police.arrest, police.menu, police.listpositions, police.getposition, police.follow | 40 金币/小时 |
| 实习警员 | lhrp.police, police.menu, police.listpositions, police.getposition | 20 金币/小时 |
| 职位 | 权限 |
|---|
| 市长 | mayor.use, mayor.money, mayor.add, mayor.remove, mayor.set, mayor.salary, mayor.paysalary, mayor.info, mayor.menu |
| 副市长 | mayor.use, mayor.money, mayor.add, mayor.salary, mayor.info, mayor.menu |
| 财政局长 | mayor.use, mayor.money, mayor.add, mayor.remove, mayor.info |
| 公务员 | mayor.use, mayor.money, mayor.info |
注意:
- 时薪可通过
/mayor salary 命令修改,工资每小时自动发放到玩家账户。 - 市政府职位权限可在
config.yml 中的 mayor.positions 部分配置。