@GroupResource(folder = "Books")
public class BookConfig extends GroupConfiguration {
public String title;
public String author;
public String description;
public int pages;
public List<String> contents;
}
title: "正常的書名"
author: "正常的作者"
description: "真的很正常的一本書"
pages: 666
contents:
- "這是一本很正常的書本"
- "為什麼我會說很正常呢"
- "因為真的很正常"
- "正常到你察覺不了他的存在"
- "oh 當你看到這則訊息的時候代表他重載得很正常。"
title: "測試書本"
author: "愛測試的作者"
description: "這是一本測試的書"
pages: 9999
contents:
- "測試的重點"
- "就是必須被測試"
- "否則就無法測試"
- "有測試才有實踐"
@ELDPlugin(
registry = TesterRegistry.class,
lifeCycle = TesterLifeCycle.class
)
public class ELDTester extends ELDBukkitPlugin {
@Override
protected void bindServices(ServiceCollection serviceCollection) {
serviceCollection.addGroupConfiguration(BookConfig.class); //註冊
}
@Override
protected void manageProvider(ManagerProvider provider) {
}
}