mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-06-02 18:11:22 +00:00
Merge pull request #22 from lucko/master
Fix permissions not being registered
This commit is contained in:
commit
109cb00b6f
|
@ -32,7 +32,7 @@ public abstract class Command {
|
||||||
public Command(Marriage marriage, String command, String... aliases) {
|
public Command(Marriage marriage, String command, String... aliases) {
|
||||||
this.marriage = marriage;
|
this.marriage = marriage;
|
||||||
this.aliases = Lists.asList(command, aliases).toArray(new String[0]);
|
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]);
|
this.permission = Permissions.getByNode("marry." + aliases[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue