Renames most commands and uses the built-in spigot command system for command info

This commit is contained in:
2021-09-02 14:27:56 +02:00
parent baedfba196
commit fba0f14995
4 changed files with 89 additions and 136 deletions

View File

@ -13,76 +13,76 @@ commands:
description: Lists Books Without Borders's commands and uses.
aliases: [ bwb ]
usage: /<command>
give:
description: Gives the held book to another player
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)]
permission: bookswithoutborders.give
givepublic:
description: Gives a public book to a player
givepublicbook:
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
decrypt:
description: Decrypts the held book
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
groupencrypt:
description: Encrypts the held book for the given group
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]
permission: bookswithoutborders.groupencrypt
delete:
description: Deletes a book saved by the executing user
deletebook:
description: Deletes the specified file in the player's directory
usage: /<command> <file name or number>
permission: bookswithoutborders.delete
deletepublic:
description: Deletes a public book
deletepublicbook:
description: Same as deletebook, but deletes files in the public directory
usage: /<command> <file name of number>
permission: bookswithoutborders.admin
copy:
description: Copies the held book
usage: /<command> <copies>
copybook:
description: Copies the book the player is holding
usage: /<command> <# of copies>
permission: bookswithoutborders.copy
unsign:
description: Un-signs the held book, making it writable
unsignbook:
description: Un-signs the book the player is holding
usage: /<command>
permission: bookswithoutborders.unsign
encrypt:
description: Encrypts the held book
encryptbook:
description: Encrypts the book the player is holding. "key" is required and can be any phrase or number excluding spaces. "style" is not required. Possible values are "DNA" or ""
usage: /<command> <key> [encryption style]
permission: bookswithoutborders.encrypt
setbookprice:
description: Sets the price for copying books to a money sum or the held item
description: Sets the per-book-price to create a book via commands. If "Item", the item in the player's hand in the amount of [quantity] will be the price. If "Eco", a Vault based economy will be used for price. If neither <Item/Eco> or <quantity> are specified the current price to create books will be removed.
usage: /<command> <item/eco> <quantity>
permission: bookswithoutborders.setbookprice
setlore:
description: Sets the lore of the held item
description: Sets the lore of the item the player is holding. Insert the lore_line_separator character to force a new line ("~" by default).
usage: /<command> <new lore>
permission: bookswithoutborders.setlore
savepublic:
description: Saves the held book to the public books folder
savepublicbook:
description: Same as savebook, but saves files in the public directory
usage: /<command> [overwrite (true/false)]
permission: bookswithoutborders.savepublic
save:
description: Saves the held book to the holding player's folder
savebook:
description: Saves the book the player is holding to a text file in a private directory. If true is specified, a book of the same name by the same author will be overwritten by the new book
usage: /<command> [overwrite (true/false)]
permission: bookswithoutborders.save
setauthor:
description: Sets the author of the held book
setbookauthor:
description: Sets the author of the book the player is holding
usage: /<command> <author>
permission: bookswithoutborders.setauthor
settitle:
description: Sets the title of the held book
description: Sets the title of the book/item the player is holding
usage: /<command> <title>
permission: bookswithoutborders.settitle
load:
description: Loads a previously saved book from the holding player's folder
usage: /<command> <file name or number> [copies] [is signed (true/false)]
loadbook:
description: Creates a book from the specified file and gives it to the player. If no file is specified, a list of available files is returned. If true is specified the book will be signed, if false it will be unsigned
usage: /<command> <file name or number> [# of copies] [signed (true/false)]
permission: bookswithoutborders.load
loadpublic:
description: Loads a previously saved book from the public books folder
usage: /<command> <file name or number> [copies] [is signed (true/false)]
loadpublicbook:
description: Same as loadbook, but views files in the public directory
usage: /<command> <file name or number> [# of copies] [signed (true/false)]
permission: bookswithoutborders.loadpublic
reload:
description: Reloads configuration from disk
description: Reloads BwB's configuration file
usage: /<command>
permission: bookswithoutborders.admin
permissions: