这是 BookManager 的重启版本。原版自八月起便无人维护,且至少存在一个会导致游戏崩溃的严重 Bug。此版本已修复该问题,并新增了一些额外功能,例如玩家首次加入服务器时即可在其背包中生成书籍。
以下是 BookManager 的原始描述:
你是否曾用新版书本和羽毛笔撰写书籍,却发现签名后需要修改某些内容?这款插件正是为你而设。如果你需要编辑书籍正文,可以先取消签名以便进行修改,然后再次签名。只需重命名呢?本插件也提供了一条快捷命令来实现书籍重命名。你可以复制书籍,也可以要求玩家在制作书本和羽毛笔时消耗相应材料。此外,你还可以更改书籍的作者(想要一本由 Herobrine 或 Notch 撰写的书吗?),并将书籍保存为服务器上的 .txt 文件。本插件支持权限系统,并且对编辑自己的书籍与编辑他人书籍分别设置了独立的权限。
安装设置
非常简单。你只需要将 jar 文件放入 plugins 文件夹即可。就这样 :)
命令列表
本插件包含八个命令:
/unsign
取消你手中持有(即快捷栏高亮显示)的书籍的签名
/rnbook <name>
重命名你手中持有的书籍
/rnauth <name>
更改你手中持有书籍的作者名。注意:这会改变所有权。如果你从一位无法编辑他人书籍的玩家那里拿走一本书并更改其作者名,那么该玩家将无法再编辑这本书。
/copybook [amount]
复制手中的已书写书籍,同时扣除一本书、墨囊和一根羽毛(除非玩家拥有 "free" 权限或处于创造模式)。 如果只想复制一本,使用此命令时无需指定数量。
/savebook <save name>
将书籍保存为 .txt 文件。每一页都会保存为一个编号的 .txt 文件,存放在以书名命名的文件夹中。已保存的书籍可在 plugins/BookManager 文件夹中找到。该文件夹中还包含一个名为 conf.yml 的文件。详见下文。
/loadbook <save name>
从插件文件夹中读取已保存(或已编辑/新建)的书籍,并将其转化为游戏中的书籍。
/deletebook <save name>
删除插件文件夹中已保存的书籍
/listbooks
列出插件文件夹中所有已保存的书籍
已保存的书籍
当你保存一本书时,它会创建一个文件夹,文件夹名称即为你设置的保存名。该文件夹位于你的 plugins/BookManager 目录中。文件夹内应包含多个编号的 .txt 文件,每个文件代表书中的某一页。如果需要,你可以直接编辑这些文件。注意:当页面过长时,本插件没有错误检测机制。实际上我并不清楚如果页面过长会发生什么(很可能是截断内容或出现图形错误),因此请谨慎控制文件的长度。
文件夹中还包含一个名为 conf.yml 的文件。这是用于配置书籍的 YAML 格式配置文件。设置项如下:
title
书籍的标题
author
书籍的作者名
available
该书是否对拥有 bookmanager.loadbook 权限的所有人开放
free
玩家获取该书时是否需要消耗制作书本和羽毛笔的材料
权限说明
共有八个主要权限节点(每个命令对应一个):===
bookmanager.unsign
允许玩家取消自己书籍的签名(默认所有人可用)
bookmanager.rnbook
允许玩家重命名自己的书籍(默认所有人可用)
bookmanager.rnauth
允许玩家更改书籍的作者(默认仅 OP 可用)
bookmanager.copy
允许玩家复制书籍(默认所有人可用)
bookmanager.savebook
允许玩家将书籍保存为服务器上的 .txt 文件(默认仅 OP 可用)
bookmanager.loadbook
允许玩家获取插件文件夹中保存的书籍并将其变为可阅读状态(默认所有人可用)
bookmanager.deletebook
允许玩家删除插件文件夹中已保存的书籍(默认仅 OP 可用)
bookmanager.listbooks
允许玩家列出其有权访问的所有已保存书籍(默认所有人可用)
另有五个子节点,默认均仅 OP 可用:
bookmanager.unsign.other
允许玩家取消其他玩家书籍的签名
bookmanager.rnbook.other
允许玩家重命名其他玩家的书籍
bookmanager.copy.free
允许玩家在不消耗任何材料的情况下复制书籍
bookmanager.loadbook.all
允许玩家访问所有已保存的书籍
bookmanager.laodbook.free
允许玩家在不消耗任何材料的情况下加载书籍
如果你授予玩家上述任一子节点,则无需再授予其对应的主节点(例如,如果玩家拥有 "bookmanager.unsign.other",则无需再赋予其 "bookmanager.unsign" 权限)
还有三个通用权限(便于管理员进行权限控制):
bookmanager.none
移除玩家在本插件中的所有权限
bookmanager.default
允许玩家编辑自己的书籍并消耗材料制作副本
bookmanager.admin
允许玩家编辑任意书籍并免费制作副本
This is a reboot of BookManager that has sadly been unmanaged since August and has at least one game breaking bug, this version has that fixed and adds some additional features such as the ability to spawn books in player's inventories the first time they join the server.
Below is the description for BookManager:
Have you written a book with the new book and quill, and realized that you needed to edit something after you signed it? This plugin is for you. If you need to edit the body of the book, you can unsign the book so that you can edit it and sign it again. Just need to rename it? There's also a one-command method in this plugin that allows you to rename books. You can copy a book, and you can require players to use up the materials that make a book and quill. You can also change the author of a book (want a book written by Herobrine or Notch?) and save books as .txt files on the server. Permissions is supported, and this plugin uses separate permissions for editing your own books vs other people's books.
Setup
Very simple. All you need to do is put the jar in your plugins folder. That's it :)
Commands
There are eight commands in this plugin:
/unsign
Unsigns the book that you are holding (the highlighted item in your hot bar)
/rnbook <name>
Renames the book that you are holding
/rnauth <name>
Changes the author name for the book that you are holding. Note: this changes ownership, so if you take a book from someone who can't edit other people's books and you change the author name, that player cannot edit that book anymore.
/copybook [amount]
Copies the held written book, taking away a book, ink sack, and a feather (unless they either have the "free" permission or are in Creative mode). You don't need to specify an amount when using this command if you only want one copy.
/savebook <save name>
Saves a book as .txt files. Each page is a numbered .txt file inside a folder by the name of the book. Saved books can be found in the folder plugins/BookManager. Also found in the folder is a file called conf.yml. See below for details.
/loadbook <save name>
Takes a saved (or edited or new) book from the plugin folder and turns it into a book in-game.
/deletebook <save name>
Deletes a saved book in the plugins folder
/listbooks
Lists all the books saved in the plugins folder
Saved Books
When you save a book, it makes a folder who's name is whatever you set the save's name to be. The folder can be found in your plugins/BookManager folder. Inside that folder should be a bunch of numbered .txt files. Each one represents a page in the book. You can edit these files directly if you want. Note: there is no error-detection for when you make a page too long. I actually don't know what will happen if you make the pages too long (most likely either cutting it off or a graphical error), so be careful how long you make the files.
In the folder is also a file called conf.yml. This is the configuration file in YAML format for the book. The settings are as follows:
title
The title of the book
author
The author name of the book
available
Whether or not the book is avaiable to everybody with bookmanager.loadbook permission
free
Whether or not players need to use up the materials for a book and quill to get the book
Permissions
There are eight main nodes (one for each command): ===
bookmanager.unsign
allows players to unsign their own books (defaults to everybody)
bookmanager.rnbook
allows players to rename their own books (defaults to everybody)
bookmanager.rnauth
allows players to change the author of books (defaults to OPs only)
bookmanager.copy
allows players to copy a book (defaults to everybody)
bookmanager.savebook
allows players to save book as .txt files on the server (defaults to OPs only)
bookmanager.loadbook
allows players to get books saved in the plugin folder as written books (defaults to everybody)
bookmanager.deletebook
allows players to delete saved books in the plugin folder (defaults OPs only)
bookmanager.listbooks
allows players to list all the saved books they have access to (defaults to everybody)
There are five sub nodes, all defaulting to OPs only:
bookmanager.unsign.other
allows players to unsign other player's books
bookmanager.rnbook.other
allows players to rename other player's books
bookmanager.copy.free
allows players to copy a book without using any materials
bookmanager.loadbook.all
allows players to access all saved books
bookmanager.laodbook.free
allows players to load books without using any materials
If you give a player one of these nodes, you don't need to give them the respective main node (for example, if a player has "bookmanager.unsign.other", that player does not need to be given the permission "bookmanager.unsign")
There are also three general permissions (for easier permissions control for admins):
bookmanager.none
removes all permissions from player for this plugin
bookmanager.default
allows player to edit their own books and make copies from materials
bookmanager.admin
allows player to edit any book and make copies for free
评论 0
登录后参与评分
还没有评论,来抢沙发吧