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