GUI

Constructors

public GUI(JavaPlugin plugin, int size, String title)

Options:

  • plugin - your plugin instance

  • size - gui size (may be 5, 9, 18, 27, 36, 45, 54)

  • title - gui title

public GUI(JavaPlugin plugin, int size, String title, Player.. player)

Options:

  • plugin - your plugin instance

  • size - gui size (may be 5, 9, 18, 27, 36, 45, 54)

  • title - gui title

  • player - players for whom the GUI will now open

Title

Set title

Get title

Item

Set item

Options:

  • slot - slot in which the item will be

  • item - ItemStack

  • action - click action

Add item on free slot

Options:

  • item - ItemStack

  • action - click action

Set Close Action

Set Border

Options:

  • item - border item

  • style - border style

Set Background

Places on all free item slots

Player

Open GUI for player

Close GUI for player

Returns all players using the GUI

Get Size

Return GUI size

Last updated