2016-07-04 16:56:47 +00:00
|
|
|
package pw.yumc.MiaoBoard.model;
|
|
|
|
|
2016-08-20 17:04:08 +00:00
|
|
|
import java.util.Date;
|
2016-07-04 16:56:47 +00:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import org.bukkit.configuration.ConfigurationSection;
|
|
|
|
|
2016-12-11 14:40:57 +00:00
|
|
|
import pw.yumc.YumCore.config.annotation.ConfigNode;
|
|
|
|
import pw.yumc.YumCore.config.annotation.Nullable;
|
|
|
|
import pw.yumc.YumCore.config.inject.InjectConfigurationSection;
|
2016-07-05 12:59:29 +00:00
|
|
|
|
2016-07-21 12:57:41 +00:00
|
|
|
/**
|
|
|
|
* 记分板数据模型类
|
2016-08-16 07:26:03 +00:00
|
|
|
*
|
2016-07-21 12:57:41 +00:00
|
|
|
* @since 2016年7月21日 下午6:58:58
|
|
|
|
* @author 喵♂呜
|
|
|
|
*/
|
2016-07-05 12:59:29 +00:00
|
|
|
public class BoardModel extends InjectConfigurationSection {
|
2016-08-20 17:04:08 +00:00
|
|
|
public transient String name;
|
|
|
|
public Integer index;
|
2016-09-06 13:43:30 +00:00
|
|
|
@Nullable
|
|
|
|
@ConfigNode("time.start")
|
2016-08-20 17:04:08 +00:00
|
|
|
public Date time_start;
|
2016-09-06 13:43:30 +00:00
|
|
|
@Nullable
|
|
|
|
@ConfigNode("time.end")
|
2016-08-20 17:04:08 +00:00
|
|
|
public Date time_end;
|
2016-07-04 16:56:47 +00:00
|
|
|
public String title;
|
|
|
|
public String permission;
|
2016-07-06 18:03:29 +00:00
|
|
|
public List<String> lines;
|
2016-07-04 16:56:47 +00:00
|
|
|
|
2016-07-05 12:59:29 +00:00
|
|
|
/**
|
|
|
|
* 自动载入配置
|
2016-07-06 18:03:29 +00:00
|
|
|
*
|
2017-03-09 01:25:49 +00:00
|
|
|
* @param name
|
2016-07-05 12:59:29 +00:00
|
|
|
* @param config
|
|
|
|
*/
|
2017-03-09 01:25:49 +00:00
|
|
|
public BoardModel(String name, final ConfigurationSection config) {
|
2016-07-05 12:59:29 +00:00
|
|
|
super(config);
|
2016-08-20 17:04:08 +00:00
|
|
|
this.name = name;
|
|
|
|
}
|
2016-07-04 16:56:47 +00:00
|
|
|
}
|