Updated plugin base
This commit is contained in:
parent
6d58d8f2f8
commit
cfd651eaab
|
@ -13,19 +13,22 @@ define(() => {
|
|||
|
||||
class Plugin {
|
||||
|
||||
constructor(args) {
|
||||
this.author = args.author;
|
||||
this.version = args.version;
|
||||
constructor(args) {
|
||||
this.info = args;
|
||||
}
|
||||
|
||||
get author() {
|
||||
return this.info.author;
|
||||
}
|
||||
|
||||
get name() {
|
||||
return this.info.name;
|
||||
}
|
||||
|
||||
get version() {
|
||||
return this.info.version;
|
||||
|
||||
}
|
||||
|
||||
get author() {
|
||||
return this.author;
|
||||
}
|
||||
|
||||
get version() {
|
||||
return this.version;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return Plugin;
|
||||
|
|
Loading…
Reference in New Issue