Skip to content

Commit

Permalink
Prettify /npc command output a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed May 1, 2020
1 parent 2c24671 commit a1744f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/src/main/java/net/citizensnpcs/trait/CommandTrait.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import net.citizensnpcs.api.util.Messaging;
import net.citizensnpcs.api.util.Placeholders;
import net.citizensnpcs.util.Messages;
import net.citizensnpcs.util.StringHelper;

@TraitName("commandtrait")
public class CommandTrait extends Trait {
Expand Down Expand Up @@ -82,7 +83,8 @@ public void describe(CommandSender sender) {
}

private String describe(NPCCommand command) {
String output = "<br> - [" + command.id + "]: " + command.command + " [" + command.cooldown + "s]";
String output = "<br> - [" + StringHelper.wrap(command.id) + "]: " + command.command + " ["
+ StringHelper.wrap(command.cooldown + "s") + "]";
if (command.op) {
output += " -o";
}
Expand Down

0 comments on commit a1744f0

Please sign in to comment.