Skip to content

Commit

Permalink
fix(utils): remove CFH createMessage method useless argument
Browse files Browse the repository at this point in the history
fix #7
  • Loading branch information
WakelessSloth56 committed Aug 9, 2022
1 parent 7451a84 commit edda7c0
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -33,12 +33,12 @@ public CommandFeedbackHelper(Function<String, String> i18n) {
}


public MutableComponent createMessage(MessageType type, Component message) {
public MutableComponent createMessage(Component message) {
return EmptyText().append(this.prefix).append(message);
}

public MutableComponent createMessage(String key, Object... args) {
return EmptyText().append(this.prefix).append(I18nText(this.i18n.apply(key), args));
return EmptyText().append(this.prefix).append(I18nText(this.i18n.apply("command." + key), args));
}

public MutableComponent createMessage(String key) {
Expand Down

0 comments on commit edda7c0

Please sign in to comment.