Skip to content

Commit

Permalink
Update Message class
Browse files Browse the repository at this point in the history
  • Loading branch information
Despical committed Jul 19, 2024
1 parent 4a9db2e commit e23de63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/me/despical/commandframework/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public enum Message {
this(message, true);
}

Message(String message, boolean noUsage) {
Message(String message, boolean sendUsage) {
this.message = (command, arguments) -> {
if (noUsage && !MessageHelper.SEND_USAGE.apply(command, arguments)) return true;
if (sendUsage && !MessageHelper.SEND_USAGE.apply(command, arguments)) return true;

arguments.sendMessage(message);
return noUsage;
return true;
};
}

Expand Down

0 comments on commit e23de63

Please sign in to comment.