Adds a new option to format books when signed
Also cleans up config stuff a bit and moves config-related tasks to its own class Moves book loading code to its own class Adds a default config file to make the config file have comments Adds missing command info about the formatBook command Adds information about required permissions to the command info
This commit is contained in:
@ -13,6 +13,14 @@ commands:
|
||||
description: Lists Books Without Borders's commands and uses.
|
||||
aliases: [ bwb ]
|
||||
usage: /<command>
|
||||
decryptbook:
|
||||
description: Decrypts the book the player is holding. "key" is required and MUST be IDENTICAL to the key used to encrypt held book
|
||||
usage: /<command> <key>
|
||||
permission: bookswithoutborders.decrypt
|
||||
formatbook:
|
||||
description: Replaces color/formatting codes in a written book with formatted text
|
||||
usage: /<command>
|
||||
permission: bookswithoutborders.format
|
||||
givebook:
|
||||
description: Gives the selected player a book from your personal directory
|
||||
usage: /<command> <file name or number> <playername> [# of copies (num)] [signed (true/false)]
|
||||
@ -21,10 +29,6 @@ commands:
|
||||
description: Same as givebook, but uses books from the public directory
|
||||
usage: /<command> <file name or number> <playername> [# of copies (num)] [signed (true/false)]
|
||||
permission: bookswithoutborders.givepublic
|
||||
decryptbook:
|
||||
description: Decrypts the book the player is holding. "key" is required and MUST be IDENTICAL to the key used to encrypt held book
|
||||
usage: /<command> <key>
|
||||
permission: bookswithoutborders.decrypt
|
||||
groupencryptbook:
|
||||
description: Encrypts book so that only players with the bookswithoutborders.decrypt.<group name> permission may decrypt the book by holding and left clicking the book
|
||||
usage: /<command> <group name> <key> [encryption style]
|
||||
@ -85,10 +89,6 @@ commands:
|
||||
description: Reloads BwB's configuration file
|
||||
usage: /<command>
|
||||
permission: bookswithoutborders.admin
|
||||
formatbook:
|
||||
description: Replaces color/formatting codes in a book with formatted text
|
||||
usage: /<command>
|
||||
permission: bookswithoutborders.format
|
||||
permissions:
|
||||
bookswithoutborders.*:
|
||||
description: Grants all permissions
|
||||
@ -100,29 +100,33 @@ permissions:
|
||||
default: op
|
||||
children:
|
||||
bookswithoutborders.use: true
|
||||
bookswithoutborders.unsign: true
|
||||
bookswithoutborders.alterbooks: true
|
||||
bookswithoutborders.copy: true
|
||||
bookswithoutborders.loadpublic: true
|
||||
bookswithoutborders.savepublic: true
|
||||
bookswithoutborders.encrypt: true
|
||||
bookswithoutborders.decrypt: true
|
||||
bookswithoutborders.groupencrypt: true
|
||||
bookswithoutborders.signs: true
|
||||
bookswithoutborders.give: true
|
||||
bookswithoutborders.givepublic: true
|
||||
bookswithoutborders.settitle: true
|
||||
bookswithoutborders.setauthor: true
|
||||
bookswithoutborders.setlore: true
|
||||
bookswithoutborders.bypassauthoronlycopy: true
|
||||
bookswithoutborders.bypassbookprice: true
|
||||
bookswithoutborders.groupencrypt: true
|
||||
bookswithoutborders.setbookprice: true
|
||||
bookswithoutborders.format: true
|
||||
bookswithoutborders.use:
|
||||
description: Allows player to use commands and to save/load/delete in their personal directory
|
||||
children:
|
||||
bookswithoutborders.save: true
|
||||
bookswithoutborders.load: true
|
||||
bookswithoutborders.delete: true
|
||||
bookswithoutborders.alterbooks:
|
||||
description: Allows player to change books' data such as lore/title/author/formatting and unsigning books
|
||||
children:
|
||||
bookswithoutborders.unsign: true
|
||||
bookswithoutborders.settitle: true
|
||||
bookswithoutborders.setauthor: true
|
||||
bookswithoutborders.setlore: true
|
||||
bookswithoutborders.format: true
|
||||
bookswithoutborders.format:
|
||||
description: Allows a player to format a book
|
||||
bookswithoutborders.save:
|
||||
|
Reference in New Issue
Block a user