Oheers / EvenMoreFish

An advanced fishing plugin based on MoreFish, created 2 years after its last update.
MIT License
91 stars 56 forks source link

Add some builders #372

Closed FireML closed 5 days ago

FireML commented 6 days ago

GUIBuilder is a class which allows us to build a GUI from a ConfigurationSection.

If you pass it a config like this:

test-gui:
  title: "Config Test GUI"
  layout:
    - "aaa   aaa"
    - "aaa a aaa"
    - "aaa a aaa"
  filler: "COBBLESTONE"

it will create a GUI like this: image

I set the 'a' character to a diamond sword in this test, however it can be anything.

FireML commented 6 days ago

I've downgraded Spigot API to 1.16.5 as that is the lowest version this plugin is supposed to support :slightly_smiling_face:

FireML commented 6 days ago

ItemBuilder is similar to GUIBuilder but for ItemStacks.

  exit:
    material: structure_void
    name: "&cExit"
    lore:
      - "&eExit to the Menu"

this config can be passed into it and it'll create the correct item.