Gave report an error message
This commit is contained in:
parent
09507999aa
commit
98475583a9
|
|
@ -431,4 +431,9 @@ public final class Config {
|
||||||
}
|
}
|
||||||
REPORT_SENT = getString("messages.report-sent", REPORT_SENT);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,10 @@ public class Report {
|
||||||
return 1;
|
return 1;
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.executes(context -> 0)
|
.executes(context -> {
|
||||||
|
context.getSource().sendMessage(Utility.parseMiniMessage(Config.HELP_REPORT));
|
||||||
|
return 0;
|
||||||
|
})
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
BrigadierCommand brigadierCommand = new BrigadierCommand(command);
|
BrigadierCommand brigadierCommand = new BrigadierCommand(command);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user