mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-12-27 18:44:20 +00:00
fix command registration error
This commit is contained in:
parent
0b4507c4a6
commit
c7c85c1a93
1 changed files with 1 additions and 3 deletions
|
@ -32,9 +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(this.aliases.length > 0) {
|
||||
this.permission = Permissions.getByNode("marry." + aliases[0]);
|
||||
}
|
||||
this.permission = Permissions.getByNode("marry." + command);
|
||||
}
|
||||
|
||||
public abstract void execute();
|
||||
|
|
Loading…
Reference in a new issue