Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
CommandClearChat: make cleared string static
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Aug 12, 2023
1 parent f9a9443 commit 58da256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/flectone/commands/CommandClearChat.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

public class CommandClearChat implements FTabCompleter {

private static final String clearedString = " \n".repeat(100);

@Override
public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command command, @NotNull String s, @NotNull String[] strings) {

FCommand fCommand = new FCommand(commandSender, command.getName(), s, strings);

if (fCommand.isHaveCD()) return true;

String string = " \n".repeat(100);

commandSender.sendMessage(string);
commandSender.sendMessage(clearedString);
fCommand.sendMeMessage("command.clear-chat.message");

return true;
Expand Down

0 comments on commit 58da256

Please sign in to comment.