fix permissions not being registered

This commit is contained in:
Luck 2016-12-20 20:51:43 +00:00
parent a722749260
commit 2dc77322ce
No known key found for this signature in database
GPG key ID: EFA9B3EC5FD90F8B

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]);
}
}