diff --git a/src/main/java/world/bentobox/bentobox/api/panels/builders/TemplatedPanelBuilder.java b/src/main/java/world/bentobox/bentobox/api/panels/builders/TemplatedPanelBuilder.java index 4e132c528..409c878a7 100644 --- a/src/main/java/world/bentobox/bentobox/api/panels/builders/TemplatedPanelBuilder.java +++ b/src/main/java/world/bentobox/bentobox/api/panels/builders/TemplatedPanelBuilder.java @@ -48,6 +48,23 @@ public class TemplatedPanelBuilder } + + /** + * Adds the template that must be loaded for Template panel builder. + * + * @param panelName the gui name + * @param templateName the name of the file + * @param dataFolder the data folder + * @return the template panel builder + * @since 1.20.0 + */ + public TemplatedPanelBuilder template(String panelName, String templateName, File dataFolder) + { + this.panelTemplate = TemplateReader.readTemplatePanel(panelName, templateName, dataFolder); + return this; + } + + /** * Adds the user for template panel builder. *