Quick update to my documentation relating to announcements.
This commit is contained in:
parent
d19afbb5be
commit
b616f84808
@ -54,7 +54,7 @@ public class AnnounceManager extends Module {
|
|||||||
/**
|
/**
|
||||||
* Send a server-wide announcement
|
* Send a server-wide announcement
|
||||||
*
|
*
|
||||||
* @param type the type of announcement to send
|
* @param type the {@link AnnounceType} to use for the announcement
|
||||||
* @param message the message that will be sent in the announcement
|
* @param message the message that will be sent in the announcement
|
||||||
*/
|
*/
|
||||||
public void sendAnnouncement(AnnounceType type, String message) {
|
public void sendAnnouncement(AnnounceType type, String message) {
|
||||||
|
@ -22,7 +22,7 @@ import java.util.stream.Collectors;
|
|||||||
public class AnnounceCommand {
|
public class AnnounceCommand {
|
||||||
private final AnnounceManager announceManager;
|
private final AnnounceManager announceManager;
|
||||||
|
|
||||||
@Command(name = "announce", usage = "<type> <message ...>", description = "Announces a message", ranks = { Rank.ADMIN })
|
@Command(name = "announce", usage = "<type> <message ...>", description = "Announce a message", ranks = { Rank.ADMIN })
|
||||||
public void onCommand(CommandProvider command) {
|
public void onCommand(CommandProvider command) {
|
||||||
CommandSender sender = command.getSender();
|
CommandSender sender = command.getSender();
|
||||||
String[] args = command.getArgs();
|
String[] args = command.getArgs();
|
||||||
|
Reference in New Issue
Block a user