插件手册:betonquest:命令和权限

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
后一修订版 两侧同时换到之后的修订记录
插件手册:betonquest:命令和权限 [2018/08/03 12:01]
Afry_
插件手册:betonquest:命令和权限 [2018/08/03 12:13]
Afry_ [主要命令介绍]
行 71: 行 71:
   * betonquest.conversation -允许与NPC交谈(默认为玩家)   * betonquest.conversation -允许与NPC交谈(默认为玩家)
   * betonquest.language - 允许更改语言(默认为玩家)   * betonquest.language - 允许更改语言(默认为玩家)
 +
 +
 +====== 主要命令介绍 ======
 +
 +重载会从配置加载所有数据,但不是所有数据都会被更新。 不会触及玩家的数据以避免数据库保存被滞后。 数据库也是一样的,您必须重新加载/重新启动整个服务器才能更改数据库
 +
 +Tags子命令允许您轻松列出和修改标签。 '/ q tags {player}' 会列出这个玩家的标签。 '/ q tags {player} add test'将为玩家添加“test”标签,'/ q tags {player} del test'将删除它。
 +
 +Points 命令类似于 listing points。'/ q points {player} add reputation 20'(在“声望”类别中添加20点)。 您还可以给一个负数来减少点数。 删除整点类别可以用'/ q points {player} del reputation'来实现。
 +
 +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:52 at the end of the command. Note that there is _ character instead of space!
 +
 +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' would run "give_emeralds" for player Beton (if he's online) from default package (not necessarily "default" but rather the default one specified in config.yml). If you want to run a static event, replace player's name with -.
 +
 +There is also condition argument for checking conditions, for example '/q condition Beton has_food'. Events and conditions need to be defined in their files, this command doesn't accept raw instructions. You can skip package name, the plugin will assume you're reffering to package specified in default_package option in config.yml file.
 +
 +If you need to create for example "Nettlebane" quest item, just hold it in your hand and type '/q item nettlebane'. It will copy the item you're holding into the items.yml file and save it there with the name you specified (in this case "nettlebane"). You can skip the package name here as well.
 +
 +The '/q give package.item' command will simply give you specified 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;200;300;world;10. Your command will look like /q config add default.events.loc_obj _100;200;300;world;10). read option allows you to display config value without modifying it.
 +
 +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, and a text in "bye" player option in default quest has path default.conversations.innkeeper.player_options.bye.text
 +
 +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') allows you to delete from the database every tag, point, objective or journal entry with specified name.
 +
 +Rename command ('/q rename') allows you to rename every tag, point, objective or journal entry in the database. In case of an objective it will also rename the objective in objectives.yml, so it continues to work correctly.
 +
 +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' command. You will get a zip file containing all your data, ready to be unzipped for restoring the plugin.
 +
 +Update command ('/q update') will try to download the newest version of the plugin and save it to the update folder. This folder is then handled by Spigot to update the plugin. If you accidentally use this command but do not wish to update the plugin, you should remove BetonQuest.jar file from the plugins/update folder before restarting/reloading the server.
 +
 +Using '/q create beton' command you will create new package named 'beton'. It will contain the default quest.
 +
 +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 "vectors.{second argument}" variable.
  • 插件手册/betonquest/命令和权限.txt
  • 最后更改: 2019/01/27 07:48
  • 小小k酱