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:
26
src/main/resources/config.yml
Normal file
26
src/main/resources/config.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
Options:
|
||||
# Whether to use YAML for saved books instead of just storing them as text
|
||||
Save_Books_in_Yaml_Format: true
|
||||
# The maximum number of duplicates of a saved book allowed
|
||||
Max_Number_of_Duplicates: 5
|
||||
# The separator used to separate the book title and the book author
|
||||
Title-Author_Separator: ","
|
||||
# The separator used to denote a new line in the book lore
|
||||
Lore_line_separator: "~"
|
||||
# A list of books given to new players the first time they join the server
|
||||
Books_for_new_players: [ ]
|
||||
# An optional message displayed to new players the first time they join the server
|
||||
Message_for_new_players: ""
|
||||
# Price settings for book copying
|
||||
Price_to_create_book:
|
||||
# The item type used as currency for copying books. Use "Economy" to use money instead of items
|
||||
Item_type: ""
|
||||
# The quantity of currency required to pay for each book produced
|
||||
Required_quantity: 0
|
||||
# Whether any admin can decrypt any book regardless of the group it was encrypted for
|
||||
Admin_Auto_Decrypt: false
|
||||
# Whether to only allow the author of a book to create copies
|
||||
Author_Only_Copy: false
|
||||
# Whether to automatically format every book when it's signed
|
||||
Format_Book_After_Signing: false
|
||||
|
@@ -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