Documented announcements

This commit is contained in:
Nicholas Rees 2021-03-17 21:21:57 -05:00
parent 20b93acc3b
commit 8ceb57aee1

@ -51,6 +51,12 @@ public class AnnounceManager extends Module {
}); });
} }
/**
* Send a server-wide announcement
*
* @param type the type of announcement to send
* @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) {
JedisCommandHandler.getInstance().send(new AnnounceCommand(type, message)); JedisCommandHandler.getInstance().send(new AnnounceCommand(type, message));
} }