Gave report an error message

This commit is contained in:
Teriuihi 2022-03-05 04:52:10 +01:00
parent 09507999aa
commit 98475583a9
2 changed files with 9 additions and 1 deletions

View File

@ -431,4 +431,9 @@ public final class Config {
}
REPORT_SENT = getString("messages.report-sent", REPORT_SENT);
}
public static String HELP_REPORT = "<red>/report <message></red>";
private static void loadMessages() {
HELP_REPORT = getString("settings.mail.mail-sent", HELP_REPORT);
}
}

View File

@ -60,7 +60,10 @@ public class Report {
return 1;
})
)
.executes(context -> 0)
.executes(context -> {
context.getSource().sendMessage(Utility.parseMiniMessage(Config.HELP_REPORT));
return 0;
})
.build();
BrigadierCommand brigadierCommand = new BrigadierCommand(command);