Add custom Item
You can add a custom items in menus, adding custom actions
Item Lookup
id: <material> material id, you can see https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html (set id: PS_BLOCK to set ps block of the current region)
enabled: <true/false> enable or disable item in gui
slot: <slot> slot where the item will be placed
slots: [slots] use this for multiple slots, you can use range slots, example: 0-9
url: <base64> if material is PLAYER_HEAD, you can use this for texturised head (optional)
name: <name> item name
lore: [lore] item lore
action: <action> action by executed wen item is clicked
command: <command> command executed wen clicked, only works if action is COMMAND or PLAYER_COMMAND
menu: <menu> menu opened wen clicked, only works if action is OPEN_MENU
Actions
NONE -> It does nothing, literally.
PLAYER_COMMAND -> It causes the player who clicks the item to execute the command
COMMAND -> execute a command by console
CLOSE_MENU -> close the current menu
OPEN_MENU -> open a menu
Example
into your guis.edit.custom you add a new item section like this:
This item is the ps view item.
Last updated