Skip to content

Commit

Permalink
Don't send message if requeue is success
Browse files Browse the repository at this point in the history
  • Loading branch information
dentmaged committed Jan 29, 2021
1 parent 0bd9111 commit e2d6bd7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/rip/bolt/ingame/commands/RequeueCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ public void requeue(MatchPlayer sender, Match match) throws CommandException {
}

private void sendResponse(MatchPlayer player, BoltResponse response) {
player.sendMessage(
text(
response.getMessage(),
response.getSuccess() ? NamedTextColor.GREEN : NamedTextColor.RED));
if (response.getSuccess()) return;

player.sendMessage(text(response.getMessage(), NamedTextColor.RED));
}
}

0 comments on commit e2d6bd7

Please sign in to comment.