Updated plugin base

This commit is contained in:
Jiiks 2016-11-01 05:44:51 +02:00
parent 6d58d8f2f8
commit cfd651eaab
1 changed files with 15 additions and 12 deletions

View File

@ -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;