Search in sources :

Example 1 with Mod

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

the class ModReviewCommand method add.

@Permission(Group.ADMIN)
@Path("add <name> <verdict> [notes...]")
void add(String name, ModVerdict verdict, String notes) {
    Mod mod = new Mod(name, verdict, notes);
    modReview.add(mod);
    save();
    send(PREFIX + "Added mod &e" + mod.getName());
}
Also used : Mod(gg.projecteden.nexus.models.modreview.ModReview.Mod) Path(gg.projecteden.nexus.framework.commands.models.annotations.Path) Permission(gg.projecteden.nexus.framework.commands.models.annotations.Permission)

Aggregations

Path (gg.projecteden.nexus.framework.commands.models.annotations.Path)1 Permission (gg.projecteden.nexus.framework.commands.models.annotations.Permission)1 Mod (gg.projecteden.nexus.models.modreview.ModReview.Mod)1