Usage Notes and Troubleshooting
Usage Notes
Accessing GUIs: GUIs are accessed via commands (e.g.,
/claim menuforMAIN_MENU) or by interacting with flags (e.g., clickingClaimIconto openICON_SELECTORorChangeBiometo openClaimUpgradeBiomeSelector).Custom GUIs: Default custom GUIs (e.g.,
ICON_SELECTOR) dynamically populate items and require a matching section initems. User-defined custom GUIs (e.g.,ClaimUpgradeBiomeSelector) are added inconfig.ymland loaded from_EN-suffixed files.Themes: Apply themes via the
themefield in the GUI’sdatasection (e.g.,clean_4forClaimUpgradeNoEnter). Custom themes can be created by adding<theme_name>_EN.ymlfiles.Customization: Admins can modify
menu_title,rows,args,theme, item properties, andconfig.ymlsettings to tailor the GUI experience.Placeholders: Use placeholders (e.g.,
%griefprevgui_getbyid_flags_parma_ChangeBiome_{claimid}%,<itemname>) to display dynamic information.Navigation: Multi-page GUIs include
PreviousandNextsections for easy navigation, typically in slots47and51.
Troubleshooting
GUI Not Opening: Verify that the GUI file exists and is correctly formatted. For custom GUIs, ensure they are listed in
config.ymlundergui.custom_guisand the file name ends in_EN(e.g.,ClaimUpgradeBiomeSelector_EN.yml). Check for errors in the server console.Theme Not Applied: Ensure the
themefield in the GUI’sdatasection matches a<theme_name>_EN.ymlfile in the theme folder (e.g.,default_EN.yml). Verify the theme file’s syntax.Items Not Displaying: Ensure
slotis a valid integer (0–53 for a 6-row GUI) orslotsis a valid list of integers, and thatview_requirementconditions are met. Check that GUI item priorities are lower than theme item priorities (e.g.,1or2vs.5).Navigation Not Working: Confirm that
PreviousandNextsections are defined in theitemssection for multi-page GUIs, typically in slots47and51.Dynamic Items Missing: For default custom GUIs, confirm that the required section (e.g.,
ICON_SELECTOR) is present initems.Commands Not Executing: Check that
left_click_commands,right_click_commands, orclick_commandsare correctly defined and use valid syntax.Broken GUI: Avoid editing
versionorgui_typein thedatasection for default GUIs. For custom GUIs, ensuregui_typematches thecustom_guisentry.Disabled GUIs: If a GUI is disabled in
config.yml(disabled_guis), use thegpgui.bypass.guidisabledpermission to access it.
Last updated