mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-29 22:27:33 +00:00
[Change] Framework-API 为 Framework 增加对 Descriptor 的检查;
[Change] Framework 构造函数增加对 Descriptor 的检查;
This commit is contained in:
parent
c4c452cf84
commit
17808c8d8f
@ -40,6 +40,9 @@ public abstract class Framework extends Plugin {
|
||||
*/
|
||||
public Framework(PluginWrapper wrapper, File dataFolder) {
|
||||
super(wrapper);
|
||||
if (!(wrapper.getDescriptor() instanceof FrameworkDescriptor)) {
|
||||
throw new IllegalStateException("Invalid description object");
|
||||
}
|
||||
this.dataFolder = dataFolder;
|
||||
try {
|
||||
initial();
|
||||
|
Loading…
Reference in New Issue
Block a user