fix help command

This commit is contained in:
Lennart ten Wolde 2016-02-26 17:08:25 +01:00
parent c15f2db284
commit 77ea443d24
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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()) {