mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-09-28 12:43:03 +00:00
fix help command
This commit is contained in:
parent
c15f2db284
commit
77ea443d24
|
@ -30,6 +30,10 @@ public class CommandHelp extends Command {
|
||||||
String alias = command instanceof CommandMarry ? "" : command.getAliases()[0] + " ";
|
String alias = command instanceof CommandMarry ? "" : command.getAliases()[0] + " ";
|
||||||
String text = "&a/marry " + alias + command.getUsage() + " &f- &7" + command.getDescription();
|
String text = "&a/marry " + alias + command.getUsage() + " &f- &7" + command.getDescription();
|
||||||
FancyMessage message = new FancyMessage(ChatColor.translateAlternateColorCodes('&', text));
|
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
|
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());
|
broadcast(Message.MARRIED, player.getName(), target.getName());
|
||||||
} else if(!mTarget.isMarriageRequested(player.getUniqueId())) {
|
} else if(!mTarget.isMarriageRequested(player.getUniqueId())) {
|
||||||
if(!hasFee()) {
|
if(!hasFee()) {
|
||||||
|
|
Loading…
Reference in a new issue