mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2025-02-05 14:22:45 +00:00
fix help command
This commit is contained in:
parent
c15f2db284
commit
77ea443d24
2 changed files with 5 additions and 1 deletions
|
@ -30,6 +30,10 @@ public class CommandHelp extends Command {
|
|||
String alias = command instanceof CommandMarry ? "" : command.getAliases()[0] + " ";
|
||||
String text = "&a/marry " + alias + command.getUsage() + " &f- &7" + command.getDescription();
|
||||
FancyMessage message = new FancyMessage(ChatColor.translateAlternateColorCodes('&', text));
|
||||
if(command.getExecutionFee() > 0.0) {
|
||||
message.tooltip("Cost: " + marriage.dependencies().getEconomyService().format(command.getExecutionFee()));
|
||||
}
|
||||
message.send(sender);
|
||||
}
|
||||
|
||||
reply("&2&m--------------------------------------------"); // Play around with the amount of dashes later
|
||||
|
|
|
@ -96,7 +96,7 @@ public class CommandMarry extends Command {
|
|||
}
|
||||
}
|
||||
|
||||
marriage.marry(mPlayer, mTarget);
|
||||
marriage.marry(mTarget, mPlayer);
|
||||
broadcast(Message.MARRIED, player.getName(), target.getName());
|
||||
} else if(!mTarget.isMarriageRequested(player.getUniqueId())) {
|
||||
if(!hasFee()) {
|
||||
|
|
Loading…
Reference in a new issue