001package com.ericlam.mc.bungee.hnmc.config.yaml;
002
003
004import java.util.List;
005
006/**
007 * 用於創建 訊息類別 config 時繼承
008 */
009public abstract class MessageConfiguration extends BungeeConfiguration {
010
011    private MessageGetter getter;
012
013    /**
014     * 若果 訊息類別 config 本身沒有 @Prefix, 返回的將是 null
015     *
016     * @return 前綴
017     */
018    public String getPrefix() {
019        return getter.getPrefix();
020    }
021
022    public String getPure(String path) {
023        return getter.getPure(path);
024    }
025
026    public String get(String path) {
027        return getter.get(path);
028    }
029
030    public List<String> getList(String path) {
031        return getter.getList(path);
032    }
033
034    public List<String> getPureList(String path) {
035        return getter.getPureList(path);
036    }
037}