Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
library:inventorygui [2020/09/14 23:15] – phoenix616 | library:inventorygui [2020/09/21 17:16] – [Adding to the GUI] Remove unnecessary parenthesis phoenix616 | ||
---|---|---|---|
Line 83: | Line 83: | ||
saveInv(inv); | saveInv(inv); | ||
return false; // Don't go back to the previous GUI (true would automatically go back to the previously opened one) | return false; // Don't go back to the previous GUI (true would automatically go back to the previously opened one) | ||
- | }) | + | }); |
``` | ``` | ||
#### State Element | #### State Element | ||
Line 95: | Line 95: | ||
change.getEvent().getWhoClicked().sendMessage(" | change.getEvent().getWhoClicked().sendMessage(" | ||
}, | }, | ||
- | new ItemStack(Material.WOOL, | + | new ItemStack(Material.WOOL, |
" | " | ||
ChatColor.GREEN + " | ChatColor.GREEN + " | ||
Line 105: | Line 105: | ||
change.getEvent().getWhoClicked().sendMessage(" | change.getEvent().getWhoClicked().sendMessage(" | ||
}, | }, | ||
- | new ItemStack(Material.WOOL, | + | new ItemStack(Material.WOOL, |
" | " | ||
ChatColor.RED + " | ChatColor.RED + " |