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