差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 后一修订版 两侧同时换到之后的修订记录 | ||
插件手册:betonquest:命令和权限 [2018/06/14 23:46] 卖烤麩 [命令和权限] |
插件手册:betonquest:命令和权限 [2018/08/03 12:01] Afry_ |
||
---|---|---|---|
行 1: | 行 1: | ||
====== 命令和权限 ====== | ====== 命令和权限 ====== | ||
- | **命令大全**< | ||
- | / j - 给日记 | ||
- | / bc - 打开你的指南针指针。 | ||
- | / | ||
- | / q - 列出所有可用的管理命令 | ||
- | / q reload - 重新加载插件 | ||
- | / q objectives{playerName} [list / add / del / complete] [指令] - 显示玩家目前的活动目标 | ||
- | / q tags{playerName} [list / add / del] [标签] - 列出所有玩家的标签 | ||
- | / q points {playerName} [list / add / del] [category] [amount] - 列出所有类别中所有玩家的积分 | ||
- | / q journal {playerName} [list / add / del] [package.pointer] [date] - 列表 | ||
- | / q event{playerName} {package.eventID} - 为玩家启动一个事件 | ||
- | / q condition{playerName} {package.conditionID} - 显示玩家是否符合指定条件 | ||
- | / q item {package.itemID} - 根据您掌握的内容创建一个项目 | ||
- | / q give{package.itemID} - 给你一个在配置中定义的项目 | ||
- | / q config {set / add / read} {path} [value] - 设置,添加或读取配置中的值 | ||
- | / q purge {playerName} - 从数据库中删除所有玩家的数据 | ||
- | / q rename {tag / point / objective / entry} {oldName} {newName} - 重命名数据库中的所有指定事物 | ||
- | / q delete {tag / point / objective / entry} {name} - 删除数据库中所有指定的东西 | ||
- | / q backup - 创建配置文件和数据库的备份 | ||
- | / q update - 将插件更新为可用的最新版本。如果您想要更新到开发版本,请--dev在命令末尾添加参数。 | ||
- | / q create {package}:用给定的名称创建新的包,并填入默认的任务 | ||
- | / q vector {packname.variable} {newvariable}:计算从第一个位置变量到您的位置的矢量并将其保存为第二个变量 | ||
- | / questlang {lang} - 更改播放器的语言(如果从控制台使用,则为全局语言)。default语言将使用config.yml中定义的语言。 | ||
- | **权限分类**< | ||
- | betonquest.admin - 允许使用管理命令(/ | ||
- | betonquest.journal - 允许使用/ | ||
- | betonquest.backpack - 允许使用/ | ||
- | betonquest.conversation - 允许与NPC交谈(默认为玩家) | ||
- | betonquest.language - 允许更改语言(默认为玩家) | ||
---- | ---- | ||
行 36: | 行 7: | ||
* /j - 获得小本本,里边记录任务状态。(里边的内容需要BQ编辑者自己写)\\ | * /j - 获得小本本,里边记录任务状态。(里边的内容需要BQ编辑者自己写)\\ | ||
+ | |||
+ | * ~~ /bc - 打开罗盘\\ | ||
* ~~ /backpack - 打开任务背包~~\\ | * ~~ /backpack - 打开任务背包~~\\ | ||
行 43: | 行 16: | ||
* /q reload - 重载BQ(每次编写完BQ任务后都需要重载)\\ | * /q reload - 重载BQ(每次编写完BQ任务后都需要重载)\\ | ||
- | * /q objectives | + | * /q objectives |
- | * /q tags < | + | * /q tags {playerName} [list/ |
- | * /q points | + | * /q points |
- | * ~~ /q journal | + | * ~~ /q journal |
- | * /q event < | + | * /q event {playerName} {package.eventID} - 对玩家执行事件\\ |
- | * /q condition | + | * /q condition |
- | * /q item <package.itemID> - 用手中的物品,在BQ的物品表里边加入一个新的条目 | + | * /q item {package.itemID} - 用手中的物品,在BQ的物品表里边加入一个新的条目 |
- | * /q give <package.itemID> - 获得BQ物品表里边的某个物品\\ | + | * /q give {package.itemID} - 获得BQ物品表里边的某个物品\\ |
- | * ~~ /q config | + | * ~~ /q config |
- | * /q purge < | + | * /q purge {playerName} - 删除玩家所有的BQ信息\\ |
- | * ~~ /q rename | + | * ~~ /q rename |
- | * ~~ /q delete | + | * ~~ /q delete |
- | * ~~ /q backup - creates a backup of configuration files and database~~\\ | + | * ~~ /q backup - 创建数据库和配置文件的备份~~\\ |
- | * ~~ /q create | + | * ~~ /q create |
- | * ~~ /q vector | + | * ~~ /q vector |
- | * ~~ / | + | * ~~ / |
+ | |||
+ | ====== 指令别名 ====== | ||
+ | |||
+ | * /j: bj, journal, bjournal, betonjournal, | ||
+ | * /backpack: b, bb, bbackpack, betonbackpack, | ||
+ | * /q: bq, bquest, bquests, betonquest, betonquests, | ||
+ | * objective: o, objectives | ||
+ | * tag: t, tags | ||
+ | * point: p, points | ||
+ | * event: e, events | ||
+ | * condition: c, conditions | ||
+ | * journal: j, journals | ||
+ | * item: i, items | ||
+ | * give: g | ||
+ | * rename: r | ||
+ | * delete: d, del | ||
+ | * create: package | ||
+ | * /questlang: ql | ||
====== 权限一览 ====== | ====== 权限一览 ====== | ||
- | * betonquest.* - 所有权限, | + | * betonquest.admin - 所有权限, |
+ | * betonquest.journal - 允许使用/ | ||
+ | * betonquest.backpack - 允许使用/ | ||
+ | * betonquest.conversation -允许与NPC交谈(默认为玩家) | ||
+ | * betonquest.language - 允许更改语言(默认为玩家) | ||
+ | |||
+ | |||
+ | ====== 主要命令介绍 ====== | ||
+ | |||
+ | Reloading loads all data from configuration, | ||
+ | |||
+ | Tags subcommand allows you to easily list and modify tags. '/q tags Beton' would list tags for player Beton. '/q tags Beton add test' would add " | ||
+ | |||
+ | Points subcommand is similar - listing points is done the same way. Adding points to a category looks like that: '/q points Beton add reputation 20' (adding 20 points to " | ||
+ | |||
+ | Journal subcommand works in the same way as those two above. Adding and removing looks like /q journal Beton add default.wood_started (or del), and you can also specify the date of entry when adding it, by appending date written like this: 23.04.2014_16: | ||
+ | |||
+ | Objective subcommand allows you to list all active objectives (shown as their labels) of the player. It can also directly add or cancel objectives using instruction strings. You can also complete the objective for the player using complete argument - it will run all events and remove the objective. | ||
+ | |||
+ | Running events for online players can be done with event argument: '/q event Beton give_emeralds' | ||
+ | |||
+ | There is also condition argument for checking conditions, for example '/q condition Beton has_food' | ||
+ | |||
+ | If you need to create for example " | ||
+ | |||
+ | The '/q give package.item' | ||
+ | |||
+ | Config subcommand is used to modify or display values in configuration files. set option replaces the value with what you typed, add simply adds your string to the existing value. (Note on spaces: by default the plugin won't insert a space between existing and added value. You can however achieve that by prefixing the string with _ character. For example: existing string is objective location, and you want to add 100; | ||
+ | |||
+ | Path in this command is like an address of the value. Next branches are separated by dots. For example language setting in main configuration has path config.language, | ||
+ | |||
+ | You can purge specific player with '/q purge Beton' command, where Beton is the name of the player. To purge the entire database at once simply change the prefix in config.yml or delete database.db file. | ||
+ | |||
+ | Delete command ('/q delete' | ||
+ | |||
+ | Rename command ('/q rename' | ||
+ | |||
+ | If you want to backup your configuration and database make sure that your server is empty (this process requires all data to be saved to database -> all players offline) and run '/q backup' | ||
+ | |||
+ | Update command ('/q update' | ||
+ | |||
+ | Using '/q create beton' command you will create new package named ' | ||
+ | |||
+ | The /q vector command allows you to create vector variables from the specified in first argument location variable to your position. The result will be saved to the " |