Search in sources :

Example 1 with ModReviewRequest

use of gg.projecteden.nexus.models.modreview.ModReview.ModReviewRequest in project Nexus by ProjectEdenGG.

the class ModReviewCommand method request.

@Cooldown(value = TickTime.SECOND, x = 30)
@Path("request <name> [notes...]")
@Description("Request a mod to be reviewed by the staff team")
void request(String name, String notes) {
    ModReviewRequest request = new ModReviewRequest(uuid(), name, notes);
    modReview.request(request);
    save();
    send(PREFIX + "Requested mod &e" + name + " &3to be reviewed");
    String message = "&e" + name() + " &3has requested mod &e" + name + " &3to be reviewed";
    Broadcast.staff().prefix("ModReview").message(json(message).command("/modreview requests")).send();
}
Also used : ModReviewRequest(gg.projecteden.nexus.models.modreview.ModReview.ModReviewRequest) Path(gg.projecteden.nexus.framework.commands.models.annotations.Path) Description(gg.projecteden.nexus.framework.commands.models.annotations.Description) Cooldown(gg.projecteden.nexus.framework.commands.models.annotations.Cooldown)

Aggregations

Cooldown (gg.projecteden.nexus.framework.commands.models.annotations.Cooldown)1 Description (gg.projecteden.nexus.framework.commands.models.annotations.Description)1 Path (gg.projecteden.nexus.framework.commands.models.annotations.Path)1 ModReviewRequest (gg.projecteden.nexus.models.modreview.ModReview.ModReviewRequest)1