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.
typeSets the type of the button.slotSets the button slot.isPermanentAllows 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).itemAllows you to define the item to be displayed (Add an item)permissionAllows you to give permission to the.elseMessageAllows you to send a message to the user when they do not have permission to click a button.elseDisplays another button if the user does not have permission.actionAllows you to choose the formula for the verification with place holder, you haveSUPERIOR,LOWER,SUPERIOR_OR_EQUAL,LOWER_OR_EQUAL,EQUALS_STRINGandEQUALSIGNORECASE_STRINGplaceHolderAllows to check an API placeholder variablevalueAllows you to set the value for placeholder verificationsoundAllows you to have a sound when the player clicks on the button. You have the list of sounds available here: XSoundvolumeChanging the sound volumepitchChanging 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:
slotsSet 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:
inventoryAllows 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:
commandsList of commands that will be executed by player.consoleCommandsList of commands that will be executed by console.closeInventoryAllows you to close the inventory before the commands are executed.consolePermissionCommandsAllows commands to be executed at the console only if the player has permission.consolePermissionPermission 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:
slotsSet 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:
slotsSet 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:
categoryAllows 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
Was this helpful?