Merge pull request #22 from lucko/master

Fix permissions not being registered
This commit is contained in:
lenis0012 2016-12-20 22:37:41 +01:00 committed by GitHub
commit 109cb00b6f

View file

@ -32,7 +32,7 @@ public abstract class Command {
public Command(Marriage marriage, String command, String... aliases) {
this.marriage = marriage;
this.aliases = Lists.asList(command, aliases).toArray(new String[0]);
if(aliases.length > 0) {
if(this.aliases.length > 0) {
this.permission = Permissions.getByNode("marry." + aliases[0]);
}
}