Buttons
Buttons are the basic foundation of the plugin, they are very important to be able to manage your configuration. Here you have all available button types and an example of their use.
Button types:
NONE
NONE_SLOT
BACK
HOME
PREVIOUS
NEXT
INVENTORY
PERFORM_COMMAND
AUCTION_ITEM
BUY_INVENTORY
SHOW_ITEM
REMOVE_ITEM
BUY_ITEM
CHANGE_SORT
CATEGORIES
REMOVE_ALL
SELL_INVENTORY_SLOT
SELL_INVENTORY_ACCEPT
SELL_INVENTORY_CANCEL
CLAIM
Default
Here is the information that is valid for all button types.
type
Sets the type of the button.slot
Sets the button slot.isPermanent
Allows you to set a button as permanent, so the paging system will not take this button into account (you must set the value to true).item
Allows you to define the item to be displayed (Add an item)permission
Allows you to give permission to the.elseMessage
Allows you to send a message to the user when they do not have permission to click a button.else
Displays another button if the user does not have permission.action
Allows you to choose the formula for the verification with place holder, you haveSUPERIOR
,LOWER
,SUPERIOR_OR_EQUAL
,LOWER_OR_EQUAL
,EQUALS_STRING
andEQUALSIGNORECASE_STRING
placeHolder
Allows to check an API placeholder variablevalue
Allows you to set the value for placeholder verificationsound
Allows you to have a sound when the player clicks on the button. You have the list of sounds available here: XSoundvolume
Changing the sound volumepitch
Changing the sound pitch
Example:
NONE
Description:
This type allows you to display a single item, no interaction is possible.
Example:
NONE_SLOT
Description:
The type with the same works as the NONE type but allows to display the same item on several slots. Example:
slots
Set button slots.
BACK
Description:
Returns to the previous inventory.
Example:
HOME
Description:
Returns to the main inventory.
Example:
PREVIOUS
Description:
Returns to the previous page
Example:
NEXT
Description:
Go to the next page
Example:
INVENTORY
Description:
Allows you to move between inventories. Please note that you can only move between inventories with a default type, otherwise you may get errors.
Example:
Value:
inventory
Allows you to define the name of the inventory to which you want to go.
PERFORM_COMMAND
Description:
Allows the player to execute commands. And thus to navigate in the inventories of other plugin for example
Example:
Value:
commands
List of commands that will be executed by player.consoleCommands
List of commands that will be executed by console.closeInventory
Allows you to close the inventory before the commands are executed.consolePermissionCommands
Allows commands to be executed at the console only if the player has permission.consolePermission
Permission for the list above
AUCTION_ITEM
Description:
Allows you to display the list of items in an inventory.
Example:
CLAIM
Description:
Allows to display the list of intems according to the inventory.
Example:
slots
Set button slots.
SELL_INVENTORY_SLOT
Description:
Allows the list of items contained in an AuctionItem of inventory type. Can only be used in the SELL_SHOW and SELL inventory type.
Example:
slots
Set button slots.
SELL_INVENTORY_ACCEPT
Description:
Allows you to accept the sale of an inventory. Can only be used in the SELL inventory type.
Example:
SELL_INVENTORY_CANCEL
Description:
Allows you to cancel the sale of an inventory. Can only be used in the SELL inventory type.
Example:
SELL_INVENTORY_BUY
Description:
Allows you to purchase inventory directly from the SELL_SHOW inventory. Can only be used in the SELL_SHOW inventory type.
Example:
CHANGE_SORT
Description:
Allows you to change the sort type for items, usable only in the AUCTION inventory type.
Example:
REMOVE_ALL
Description:
Allows you to remove all items that are in the ITEMS, EXPIRE and BUYING inventory.
Example:
CATEGORIES
Description:
Displays a button to access a category. Can only be used in the CATEGORIES inventory.
Example:
category
Allows you to give the name of the category to be opened.
BUY_ITEM
Description:
Allows to confirm the purchase of an item, usable only in the inventory BUY_CONFIRM.
Example:
REMOVE_ITEM
Description:
Allows you to confirm the cancellation of the sale of the item, usable only in the inventory REMOVE_CONFIRM.
Example:
SHOW_ITEM
Description:
Displays the item to be purchased or remove, usable only in the inventory REMOVE_CONFIRM and BUY_CONFIRM.
Example:
Last updated