prefix: "&a[Plugin]&r"
hello: "&ahello world!"
bye: "&7good bye!"
@Prefix(path = "prefix")
@Resource(locate = "lang.yml")
public class LangConfig extends LangConfiguration {
}
@ELDPlugin(
registry = TesterRegistry.class,
lifeCycle = TesterLifeCycle.class
)
public class ELDTester extends ELDBukkitPlugin {
@Override
protected void bindServices(ServiceCollection serviceCollection) {
serviceCollection.addConfiguration(LangConfig.class);
}
@Override
protected void manageProvider(ManagerProvider provider) {
}
}
public interface LangController {
String get(String var1); // 透過路徑獲取訊息
String getPure(String var1); //透過路徑獲取無前綴訊息
List<String> getList(String var1); //透過路徑獲取訊息列表
List<String> getPureList(String var1); //透過路徑獲取無前綴訊息列表
String getPrefix(); //獲取前綴
}