mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-05-19 19:11:21 +00:00
fix permissions not being registered
This commit is contained in:
parent
a722749260
commit
2dc77322ce
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue