BBCDGetTemplatesEvent Object - Kirastur/BossbarCountdown GitHub Wiki
This Event is sent when the plugin must collect a list of available Templates. The Events contains a list of Templates already collected (e.g. by loading from the config file). You can listen for this Event and add your own Templates, so they are available for other plugins. The Event is sent every time a list of Templates is required (e.g. for the bbcd command tab completer), so it's your job to cache your Template-objects between the Event calls.
BBCDTemplate findTemplate
public BBCDTemplate findTemplate(String templateName)
Get a list of all Templates registered in this event until now. This list may not be complete because subsequent plugins can also add Templates.
hasTemplate
public boolean hasTemplate(String templateName)
Check if a Template with the given name is already added to the Template List.
addTemplate
public boolean addTemplate(BBCDTemplate newTemplate)
Add the given Template to the Template List. Each Template must have an unique name. You cannot add a Template if another template with the given name already exists.